/* Final shared responsive layer: loaded after page-specific styles. */
html{overflow-x:clip;scrollbar-gutter:stable}
body{font-family:'Cairo','Inter',Arial,sans-serif!important}
button,input,textarea,select{font-family:inherit!important}
*,*::before,*::after{box-sizing:border-box}
img,video,svg{max-width:100%}
input,textarea,select{min-width:0}
button,a{touch-action:manipulation}
.legal-links{position:relative;z-index:2;display:flex;justify-content:center;flex-wrap:wrap;gap:12px 28px;padding:22px 20px;color:#a9c4d5;font-size:12px}
.legal-links a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:5px}
.site-header{gap:clamp(12px,2vw,28px)}
#about .about-mockup-copy{padding-inline:30px;overflow-wrap:break-word}
#about .about-card:has(> .about-expanded-copy:not([hidden])) > .about-mockup {
 border-end-start-radius:0;
 border-end-end-radius:0;
}
#about .about-toggle {
 display:inline-flex;
 align-items:center;
 gap:8px;
 min-height:44px;
 margin-block-start:6px;
 padding:0;
 background:transparent;
 color:#91e4fa;
 font-size:14px;
 font-weight:600;
}
#about .about-toggle[aria-expanded="false"] [data-about-label="1"],
#about .about-toggle[aria-expanded="true"] [data-about-label="0"] {display:none}
#about .about-toggle[aria-expanded="true"] svg {transform:rotate(180deg)}
#about .about-expanded-copy {
 padding:clamp(18px,3vw,38px);
 border:1px solid #63cbe946;
 border-block-start:0;
 border-radius:0 0 24px 24px;
 background:#06182ab3;
 color:#d2e0ef;
 text-align:start;
 line-height:1.95;
}
#about .about-expanded-copy p+p {margin-block-start:14px}
.client-showcase{direction:inherit!important}
.visit-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);align-items:center;gap:clamp(24px,5vw,72px);padding:clamp(24px,4vw,48px);border:1px solid #63cbe946;border-radius:26px;background:linear-gradient(120deg,#092b42b3,#06182ab3)}
.visit-copy h2{font-size:clamp(28px,3vw,42px);margin-block:10px 18px}
.visit-copy address{font-style:normal;font-size:clamp(16px,1.8vw,21px);color:#bbd3e2;line-height:1.9}
.visit-copy .glass-button{margin-top:26px}
.visit-card .location-block{width:100%;max-width:100%;margin:0}
.visit-card .map-preview{aspect-ratio:5/4;max-height:340px}
.visit-card .map-preview img{width:100%;height:100%;object-fit:cover}
.spaceh-service-detail .spaceh-page-tools{position:relative!important;display:flex;align-items:center;justify-content:space-between;height:auto!important;min-height:76px;gap:16px;flex-wrap:wrap;padding-block:14px!important}
.spaceh-service-detail .spaceh-lang{position:static!important;inset:auto!important;transform:none!important;display:flex!important;order:2;margin-inline:auto;z-index:1}
.spaceh-service-detail .spaceh-lang button{min-width:44px;min-height:44px;font-size:12px!important}
.spaceh-service-detail .spaceh-mini-brand{order:3}
.spaceh-service-detail .spaceh-back-link{order:1;min-height:44px;display:flex;align-items:center}
.spaceh-service-detail .spaceh-page-tools-spacer{display:none!important}
.spaceh-service-detail #home>div,.spaceh-service-detail section .grid>div{min-width:0}
.spaceh-service-detail section{overflow-wrap:break-word}
.spaceh-service-detail #home{margin-top:30px!important}
.spaceh-service-detail .phone-frame{display:block!important}
.spaceh-service-detail pre{max-width:100%;overflow:auto;direction:ltr;text-align:left}
.spaceh-service-detail table{display:block;max-width:100%;overflow:auto}
.spaceh-service-detail .font-mono{font-family:'JetBrains Mono',monospace!important}
@media(max-width:1023px){
 .spaceh-service-detail #home>div{gap:30px!important}
 .spaceh-service-detail #home h1{font-size:clamp(28px,4.5vw,42px)!important}
 .spaceh-service-detail [class*="lg:col-span-"]{min-width:0}
 .spaceh-service-detail .spaceh-page-tools{width:calc(100% - 32px)!important}
}
@media(max-width:767px){
 html{scroll-padding-top:100px}
 .container{width:calc(100% - 32px)!important}
 .hero{min-height:100svh;align-items:center!important;padding-block:130px 88px!important}
 .hero h1{white-space:normal!important;font-size:clamp(32px,9vw,56px)!important}
 .site-header{max-width:calc(100% - 24px);width:calc(100% - 24px);top:12px}
 .visit-card{grid-template-columns:minmax(0,1fr);padding:24px 20px;gap:28px}
 .visit-card .location-block{max-width:440px;margin-inline:auto}
 .visit-copy .glass-button{width:100%;justify-content:space-between}
 #about .about-building{min-height:150px}
 .spaceh-service-detail>section:not(.spaceh-contact-panel),.spaceh-service-detail main{width:calc(100% - 24px)!important;margin-inline:auto!important;max-width:100%!important}
 .spaceh-service-detail>section:not(.spaceh-contact-panel){padding:24px 16px!important}
 .spaceh-service-detail main{margin-top:24px!important}
 .spaceh-service-detail .spaceh-page-tools{gap:8px;min-height:76px}
 .spaceh-service-detail .spaceh-mini-brand{font-size:17px!important;letter-spacing:.08em}
 .spaceh-service-detail .spaceh-back-link{font-size:11px!important}
 .spaceh-service-detail .spaceh-lang{gap:0!important;margin-inline:0}
 .spaceh-service-detail .spaceh-lang button{padding:8px!important;min-width:36px!important}
 .spaceh-service-detail #home{margin-top:24px!important}
 .spaceh-service-detail #home p:not(.font-mono){font-size:14px;line-height:1.9}
 .spaceh-service-detail h2{font-size:clamp(23px,6vw,30px)!important;line-height:1.5!important}
 .spaceh-service-detail h3{font-size:clamp(17px,4.5vw,22px);line-height:1.6}
 .spaceh-service-detail form input,.spaceh-service-detail form textarea,.spaceh-service-detail form select{font-size:16px!important}
 .spaceh-service-detail #home .flex.flex-wrap>a{flex:1 1 210px;justify-content:center;text-align:center;white-space:normal}
 .spaceh-service-detail .branch-network-canvas{width:100%!important;min-width:0!important;height:310px!important;min-height:310px!important;aspect-ratio:auto!important}
 .spaceh-service-detail .branch-network-canvas>div p{font-size:10px!important;line-height:1.5!important}
 .spaceh-service-detail .branch-network-canvas>div p.font-mono{font-size:8px!important}
 .spaceh-service-detail .branch-network-canvas>div:nth-of-type(1){width:142px;top:12px}
 .spaceh-service-detail .branch-network-canvas>div:nth-of-type(2){width:100px;left:3%;bottom:12px}
 .spaceh-service-detail .branch-network-canvas>div:nth-of-type(3){width:100px;right:3%;bottom:12px}
 .spaceh-service-detail .branch-network-canvas svg{overflow:visible}
 .spaceh-service-detail .laptop-frame{margin-bottom:80px!important}
 .spaceh-service-detail .laptop-frame>div{aspect-ratio:auto!important;min-height:230px;overflow:visible!important}
 .spaceh-service-detail .laptop-frame p{font-size:9px!important;line-height:1.5!important}
 .spaceh-service-detail .phone-frame{width:90px!important;left:0!important;bottom:-65px!important}
 .spaceh-service-detail .phone-frame p{font-size:8px!important;line-height:1.4!important}
 .spaceh-service-detail .phone-frame+div{position:relative!important;inset:auto!important;max-width:calc(100% - 100px)!important;margin-inline-start:auto;padding:10px!important;gap:6px!important}
 .spaceh-service-detail .phone-frame+div p{font-size:9px!important}
 .spaceh-service-detail .sh-impact-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important;width:100%;max-width:100%}
 .spaceh-service-detail .sh-impact-metrics>div{min-width:0}
 .spaceh-service-detail .sh-impact-metrics p{font-size:15px!important;line-height:1.6!important;overflow-wrap:anywhere}
 .spaceh-service-detail[data-service="central-monitoring"] #home .aspect-video{aspect-ratio:auto!important;min-height:110px}
 .spaceh-service-detail[data-service="central-monitoring"] #home .aspect-video p{font-size:9px!important;line-height:1.5!important}
}
@media(max-width:374px){
 .spaceh-service-detail .spaceh-page-tools{gap:4px}
 .spaceh-service-detail .spaceh-mini-brand{font-size:15px!important}
 .spaceh-service-detail .spaceh-lang button{min-width:32px!important;padding-inline:5px!important}
 .spaceh-service-detail .spaceh-back-link{font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}video[autoplay]{display:none}.branch-network-canvas svg circle{opacity:.8}}

/* Keep the language panel aligned with its trigger and inside the viewport. */
.site-header .language-picker{position:relative;flex:0 0 auto}
.site-header .language-menu{
 left:auto!important;right:0!important;top:calc(100% + 14px)!important;
 width:176px!important;max-width:calc(100vw - 32px);z-index:60;transform:none!important
}
.site-header .language-menu button{
 min-height:46px;gap:14px;white-space:nowrap;text-align:start
}
.site-header .language-menu small{margin-inline-start:auto;flex:0 0 auto}
@media(max-width:767px){
 html[lang="en"] .video-backdrop{background-position:62% center}
 html[lang="en"] .video-backdrop video{object-position:62% center}
 html[lang="en"] .video-shade{background:linear-gradient(to right,#041020a6,#04102038 58%,transparent),linear-gradient(to top,#04102040,transparent 60%)}
 .hero#home{min-height:min(760px,100svh)!important;align-items:center!important;padding-block:128px 88px!important}
 .hero#home .hero-content{align-self:center!important;margin:0!important;max-width:100%;width:100%;min-width:0}
 .hero#home h1{font-size:clamp(36px,10vw,52px)!important;line-height:1.2!important;white-space:normal!important;text-align:start!important}
 .hero#home .hero-tag{font-size:10px!important;line-height:1.9!important;letter-spacing:.06em;max-width:100%;margin-bottom:18px}
 .hero#home .scroll-hint{bottom:22px}
}
@media(max-height:500px) and (max-width:900px){
 .hero#home{min-height:440px!important;padding-block:120px 72px!important}
 .hero#home h1{font-size:36px!important}
}

.spaceh-footer,.spaceh-footer.spaceh-footer--light{
 width:100%;margin:0;padding:0!important;background:#06101d;color:#dfe9f2;border-top:1px solid rgba(112,164,194,.28);border-radius:0
}
.spaceh-footer .spaceh-footer-inner{
 width:min(1180px,calc(100% - 40px));display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"brand links";
 align-items:center;gap:28px;margin:0 auto;padding:18px 0;direction:ltr;border:0;border-radius:0;background:transparent
}
.spaceh-footer .spaceh-footer-brand{
 grid-area:brand;justify-self:start;display:flex;flex-direction:column;align-items:flex-start;gap:3px;color:#edf4f8;text-decoration:none;white-space:nowrap
}
.spaceh-footer .spaceh-footer-brand strong{font:700 19px/1.1 Inter,Arial,sans-serif;letter-spacing:.14em}
.spaceh-footer .spaceh-footer-brand strong span{color:#35bddc}
.spaceh-footer .spaceh-footer-brand small{font:400 10px/1.4 Inter,Arial,sans-serif;color:#8fa6b7;opacity:1;letter-spacing:.015em}
.spaceh-footer-navigation{grid-area:links;display:flex;align-items:center;justify-content:flex-end;gap:20px;min-width:0}
.spaceh-footer .spaceh-footer-links{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px 18px;white-space:normal}
.spaceh-footer .spaceh-footer-links a{
 display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0;
 background:transparent;border:0;border-radius:0;color:#cbd9e3;text-decoration:none;font:500 12px/1.3 Inter,Arial,sans-serif
}
.spaceh-footer .spaceh-footer-links a:hover{color:#ffffff}
.spaceh-footer .spaceh-footer-links svg{width:14px;height:14px;flex:none;color:#35bddc}
.spaceh-footer .legal-links{padding:0;gap:0 15px;justify-content:flex-end;color:#93a9b9;font-size:11px;white-space:nowrap}
.spaceh-footer .legal-links a{min-height:44px;color:inherit;text-decoration:none}
.spaceh-footer .legal-links a:hover{color:#dfe9f2}
.spaceh-footer-rights{
 display:block;width:100%;margin:0;padding:10px 20px;border:0;border-top:1px solid rgba(112,164,194,.2);border-radius:0;background:#050d17;
 text-align:center;color:#7f95a5;font:400 10px/1.5 Inter,Arial,sans-serif
}
@media(max-width:720px){
 .spaceh-footer .spaceh-footer-inner{width:calc(100% - 32px);grid-template-columns:minmax(0,1fr);grid-template-areas:"brand" "links";gap:11px;padding:16px 0 10px}
 .spaceh-footer .spaceh-footer-brand{justify-self:center;align-items:center}
 .spaceh-footer-navigation{flex-direction:column;justify-content:center;gap:0}
 .spaceh-footer .spaceh-footer-links{justify-content:center;gap:0 17px}
 .spaceh-footer .spaceh-footer-links a{min-height:40px;font-size:11px}
 .spaceh-footer .legal-links{justify-content:center;gap:0 18px}
 .spaceh-footer .legal-links a{min-height:38px}
 .spaceh-footer-rights{padding:9px 16px}
}

/* Mobile clarity for all six solution pages. */
@media(max-width:767px){
 .spaceh-service-detail #home>div,.spaceh-service-detail section>div{max-width:100%}
 .spaceh-service-detail #home [class*="lg:col-span-"],.spaceh-service-detail section [class*="lg:col-span-"]{width:100%;min-width:0}
 .spaceh-service-detail [class~="text-[8px]"]{font-size:10px!important;line-height:1.45!important}
 .spaceh-service-detail [class~="text-[9px]"]{font-size:10px!important;line-height:1.5!important}
 .spaceh-service-detail [class~="text-[10px]"]{font-size:11px!important;line-height:1.5!important}
 .spaceh-service-detail [class~="text-[11px]"]{font-size:12px!important;line-height:1.55!important}
 .spaceh-service-detail .scanline,.spaceh-service-detail .radar-sweep-line{display:block!important;opacity:.9!important;visibility:visible!important;animation-play-state:running!important;will-change:transform}
 .spaceh-service-detail .animate-ping,.spaceh-service-detail .animate-pulse{display:inline-flex;opacity:1;visibility:visible;animation-play-state:running!important}
 .spaceh-service-detail[data-service="digital-protection"] #soc-simulator button{flex:1 1 100%;min-height:44px;text-align:center}
 .spaceh-service-detail[data-service="digital-protection"] #simPanelContainer{padding:16px!important;overflow-wrap:anywhere}
 .spaceh-service-detail[data-service="central-monitoring"] #command-center .grid{gap:10px!important}
 .spaceh-service-detail[data-service="software-solutions"] .phone-frame{display:block!important}
 .spaceh-service-detail[data-service="solar-energy"] #calculator .grid,.spaceh-service-detail[data-service="smart-infrastructure"] #configurator .grid{min-width:0}
 .spaceh-service-detail[data-service="smart-infrastructure"] #lead-form{padding:18px!important}
}

/* Final home-page alignment: English stays left; Arabic and Kurdish share one RTL composition. */
html[dir="ltr"] .hero#home .hero-content{margin-left:0!important;margin-right:auto!important;text-align:left!important}
html[dir="ltr"] .hero#home .hero-tag,html[dir="ltr"] .hero#home h1{text-align:left!important}
html[dir="rtl"] .hero#home .hero-content{margin-left:auto!important;margin-right:0!important;text-align:right!important}
html[dir="rtl"] .hero#home .hero-tag,html[dir="rtl"] .hero#home h1{text-align:right!important}

/* The language panel opens toward the page, never outside the viewport. */
html[dir="ltr"] .site-header .language-menu{left:auto!important;right:0!important}
html[dir="rtl"] .site-header .language-menu{left:0!important;right:auto!important}

/* Compact, formal contact directory used at every viewport size. */
.contact-section .visit-card{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(22px,3vw,36px);padding:clamp(18px,3vw,32px);border-radius:20px}
.contact-section .contact-copy h2{margin:0 0 10px;font-size:clamp(22px,3vw,32px)}
.contact-detail{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;min-height:48px;padding:7px 0;border-bottom:1px solid rgba(125,190,220,.26);color:#edf6fb;transition:color .2s,border-color .2s}
.contact-detail:hover{color:#71dff5;border-color:rgba(75,215,244,.58)}
.contact-detail-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#14324a;color:#a1def4}
.contact-detail>span:nth-child(2){display:flex;flex-direction:column;min-width:0;gap:2px}
.contact-detail small{color:#b4c9dc;font-size:11px;line-height:1.5}
.contact-detail strong{align-self:flex-start;font-size:13px;line-height:1.5;font-weight:600;overflow-wrap:anywhere;max-width:100%}
.contact-channels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:13px;direction:ltr}
.contact-channels a{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:4px;border:1px solid rgba(137,198,226,.35);border-radius:8px;color:#e4eff8;background:rgba(10,39,59,.38);font:500 11px/1.2 Inter,Arial,sans-serif;transition:border-color .2s,color .2s,background .2s}
.contact-channels svg{width:13px;height:13px;flex:none;color:#a1def4}
.contact-channels a:hover{color:#fff;border-color:#47cbe8;background:rgba(30,139,173,.18)}
.contact-section .location-block{max-width:none}
.contact-section .map-preview{border-radius:13px;aspect-ratio:1.55;min-height:170px;max-height:280px}
.contact-section .map-label{inset-inline:10px auto;bottom:10px;gap:7px;min-height:44px;padding:0 12px;border-radius:8px;background:#0b2035;font-size:13px;letter-spacing:normal}
.contact-section .map-label svg{width:15px;height:15px;flex:none;color:#a1def4}
@media(max-width:767px){
 .hero#home .hero-content{width:100%!important}
 html[dir="rtl"] .hero#home .hero-content{padding-left:0;padding-right:0}
 .contact-section .visit-card{grid-template-columns:minmax(0,1fr);gap:16px;padding:clamp(12px,4vw,20px)}
 .contact-section .map-preview{aspect-ratio:1.65;max-height:240px}
}
@media(max-width:360px){
 .contact-channels a{padding-inline:2px;gap:3px}
 .contact-channels svg{width:12px;height:12px}
}
