/* ===== Cubicles Revamp: sitewide header / menu / footer polish ===== */
:root{--cc-navy:#070d1f;--cc-blue:#2563eb;--cc-cyan:#22d3ee;--cc-org:#ff7a1a}

/* top bar */
.top-sec{background:linear-gradient(90deg,#070d1f,#0f1f4d)!important;color:#d5def2!important;padding-top:7px!important;padding-bottom:7px!important;font-size:13.5px}
.top-sec a,.top-sec .top-contact a{color:#e8eefc!important;text-decoration:none!important;transition:color .2s}
.top-sec a:hover{color:var(--cc-cyan)!important}
.top-sec .top-contact{display:flex;align-items:center;gap:12px}
.top-sec .top-contact img{filter:brightness(0) invert(1);width:14px;height:14px;opacity:.9}
.top-sec .social-icons a{transition:transform .2s,color .2s}.top-sec .social-icons a:hover{transform:translateY(-2px)}

/* header */
header{border-bottom:1px solid #e3e8f2;transition:box-shadow .3s}
header.cc-scrolled{box-shadow:0 14px 34px -18px rgba(7,13,31,.35)}
header .brand a{font-weight:800;letter-spacing:-.01em;color:#0b1426!important}
header .brand img{transition:transform .4s}header .brand a:hover img{transform:rotate(-8deg) scale(1.06)}
header #mega-menu-main-menu>li.mega-menu-item>a.mega-menu-link{font-weight:600!important;letter-spacing:.01em;position:relative;border-radius:10px;transition:color .2s,background .2s!important}
header #mega-menu-main-menu>li.mega-menu-item>a.mega-menu-link::after{content:"";position:absolute;left:14px;right:14px;bottom:8px;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--cc-blue),var(--cc-cyan));transform:scaleX(0);transition:transform .25s}
header #mega-menu-main-menu>li.mega-menu-item:hover>a.mega-menu-link::after,header #mega-menu-main-menu>li.mega-current-menu-item>a.mega-menu-link::after{transform:scaleX(1)}
header #mega-menu-main-menu>li.mega-menu-item:hover>a.mega-menu-link{color:var(--cc-blue)!important;background:rgba(37,99,235,.06)!important}
#mega-menu-main-menu .mega-sub-menu{border-radius:16px!important;box-shadow:0 30px 60px -20px rgba(7,13,31,.35)!important;border:1px solid #e3e8f2!important;overflow:hidden}
#mega-menu-main-menu .mega-sub-menu a.mega-menu-link{transition:color .2s,padding-left .2s!important}
#mega-menu-main-menu .mega-sub-menu a.mega-menu-link:hover{color:var(--cc-blue)!important;padding-left:6px!important}
.cc-hdr-cta{display:inline-flex;align-items:center;gap:6px;margin:0 14px;padding:11px 22px;border-radius:999px;background:var(--cc-org);color:#fff!important;font-weight:700;font-size:15px;text-decoration:none!important;white-space:nowrap;box-shadow:0 10px 24px -8px rgba(255,122,26,.7);transition:transform .2s,box-shadow .2s;position:relative;overflow:hidden}
.cc-hdr-cta:hover{transform:translateY(-2px);box-shadow:0 14px 28px -8px rgba(255,122,26,.85)}
.cc-hdr-cta::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg);animation:ccshine 3.6s infinite}
@keyframes ccshine{to{left:140%}}
@media(max-width:1100px){.cc-hdr-cta{display:none}}

/* pre-footer CTA band */
.cc-band{position:relative;overflow:hidden;background:radial-gradient(700px 300px at 85% 0,rgba(37,99,235,.55),transparent 60%),radial-gradient(500px 260px at 0 100%,rgba(255,122,26,.25),transparent 60%),var(--cc-navy);color:#fff;padding:54px 20px}
.cc-band__in{max-width:1200px;margin:0 auto;display:flex;flex-wrap:wrap;gap:22px;align-items:center;justify-content:space-between}
.cc-band h2{margin:0 0 6px;color:#fff;font-size:clamp(24px,3vw,34px);font-weight:800;letter-spacing:-.02em;line-height:1.15}
.cc-band p{margin:0;color:#b9c6e0;font-size:16px}
.cc-band__btns{display:flex;gap:12px;flex-wrap:wrap}
.cc-band a{display:inline-flex;align-items:center;gap:8px;padding:14px 26px;border-radius:999px;font-weight:700;text-decoration:none!important;transition:transform .2s}
.cc-band a:hover{transform:translateY(-2px)}
.cc-band .p{background:var(--cc-org);color:#fff!important;box-shadow:0 10px 26px -8px rgba(255,122,26,.7)}
.cc-band .g{border:2px solid rgba(255,255,255,.4);color:#fff!important}

/* footer */
footer{position:relative;background:linear-gradient(180deg,#0a1230,#060b1b)!important;color:#b9c6e0!important}
footer::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,var(--cc-blue),var(--cc-cyan),var(--cc-org))}
footer .addresscontent .card{background:rgba(255,255,255,.04)!important;border:1px solid rgba(125,160,255,.16)!important;border-radius:18px!important;box-shadow:none!important;transition:border-color .3s,transform .3s}
footer .addresscontent .card:hover{border-color:rgba(34,211,238,.45)!important;transform:translateY(-3px)}
footer h4{position:relative;color:#fff!important;font-weight:800!important;padding-bottom:12px!important;margin-bottom:14px!important}
footer h4::after{content:"";position:absolute;left:0;bottom:0;width:38px;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--cc-org),#f43f5e)}
footer .menu a,footer .card a{color:#b9c6e0!important;text-decoration:none!important;display:inline-block;transition:color .2s,transform .2s}
footer .menu a:hover,footer .card a:hover{color:#fff!important;transform:translateX(5px)}
footer .office-main{color:var(--cc-org)!important}
footer .copyright{border-top:1px solid rgba(125,160,255,.16)!important}
footer .footerProductsLogo li{transition:transform .25s}footer .footerProductsLogo li:hover{transform:translateY(-4px) scale(1.04)}
footer .social-icons a{transition:transform .2s,color .2s}footer .social-icons a:hover{transform:translateY(-3px) rotate(-6deg);color:var(--cc-cyan)!important}
@media(prefers-reduced-motion:reduce){.cc-hdr-cta::after{animation:none}}

/* ===== QA fixes ===== */
/* header navigation: keep all 8 items on one row */
@media(min-width:769px){
 header #mega-menu-main-menu>li.mega-menu-item>a.mega-menu-link{padding:0 9px!important;font-size:14px!important;white-space:nowrap}
 header #mega-menu-main-menu{flex-wrap:nowrap!important}
 header .brand a{line-height:1.15}
}
@media(min-width:769px) and (max-width:1320px){
 header #mega-menu-main-menu>li.mega-menu-item>a.mega-menu-link{padding:0 6px!important;font-size:13.5px!important}
 .cc-hdr-cta{display:none}
}
header{isolation:isolate}
.cch-head,.cch-rv{position:relative;z-index:0}
/* mobile menu call-to-action */
.cc-mob-cta{display:none}
@media(max-width:768px){
 .cc-mob-cta{display:block!important;padding:16px 14px 6px;list-style:none}
 .cc-mob-cta a{display:flex;justify-content:center;align-items:center;gap:6px;padding:13px 20px;border-radius:999px;background:var(--cc-org);color:#fff!important;font-weight:700;text-decoration:none!important}
}
/* cookie notice: compact bottom card instead of a full-screen modal */
html.modal-cacsp-open{overflow:auto!important}
body.modal-cacsp-open .modal-cacsp-backdrop{display:none!important}
body.modal-cacsp-open .modal-cacsp-position{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;height:auto!important;padding:0 10px 10px!important;z-index:100001!important;pointer-events:none;display:block!important}
.modal-cacsp-position .modal-cacsp-box-info{pointer-events:auto;position:relative!important;max-width:760px!important;width:100%!important;margin:0 auto!important;border-radius:16px!important;background:#fff!important;box-shadow:0 20px 60px -10px rgba(7,13,31,.6)!important;padding:16px 18px!important;box-sizing:border-box!important}
.modal-cacsp-box-info .modal-cacsp-box-header{display:none!important}
.modal-cacsp-box-info .modal-cacsp-box-content{padding:0 0 12px!important;font-size:14px!important;line-height:1.5!important;color:#0b1426!important}
.modal-cacsp-box-info .modal-cacsp-btns{padding:0!important;margin:0!important;display:flex!important;gap:10px;justify-content:flex-end}
.modal-cacsp-position .modal-cacsp-box .modal-cacsp-btns .modal-cacsp-btn{margin:0!important;padding:9px 20px!important;border-radius:999px!important;flex:0 0 auto}
.modal-cacsp-btn-accept{background:#ff7a1a!important;border-color:#ff7a1a!important;color:#fff!important}
.modal-cacsp-btn-settings{background:#fff!important;color:#0b1426!important;border-color:#c5d0e6!important}

/* ===== MOBILE HEADER ===== */
@media(max-width:768px){
 .top-mobile-sec{display:flex!important;align-items:center;justify-content:center;gap:8px;height:auto!important;min-height:0!important;padding:7px 12px!important;background:linear-gradient(90deg,#070d1f,#0f1f4d)!important;color:#e8eefc!important;font-size:13.5px!important;font-weight:600}
 .top-mobile-sec a{color:#fff!important;text-decoration:none!important}
 .top-mobile-sec img{width:15px!important;height:15px!important;filter:brightness(0) invert(1)}
 header{border-bottom:1px solid #e3e8f2;box-shadow:0 8px 24px -18px rgba(7,13,31,.4)}
 header #desktop{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;padding:6px 12px!important;gap:10px;width:100%;box-sizing:border-box}
 header .brand{flex:1 1 auto;min-width:0;height:auto!important}
 header .brand a{display:flex!important;align-items:center!important;gap:9px;height:auto!important;font-size:13px!important;line-height:1.15!important;white-space:normal!important;font-weight:800}
 header .brand img{width:44px!important;height:auto!important;max-height:40px;object-fit:contain;flex:none}
 header #NavbarCollapse{display:flex!important;flex-direction:row-reverse;align-items:center;gap:4px;width:auto!important;height:auto!important;flex:none;margin:0!important;padding:0!important}
 header #NavbarCollapse>ul{margin:0!important;padding:0!important;width:auto!important;height:auto!important;display:block}
 header #NavbarCollapse .search-form{margin:0!important;width:auto!important;display:flex;align-items:center}
 header #NavbarCollapse .search-submit{width:42px;height:42px;display:grid;place-items:center;padding:0}
 header .mega-menu-toggle{margin:0!important}
 header .mega-toggle-animated{width:44px!important;height:44px!important;border-radius:12px;background:var(--cc-blue,#2563eb)!important;display:grid!important;place-items:center}
}

/* older pages: never let a bespoke section cause sideways scrolling on phones */
@media(max-width:900px){
 #bodyinside,.wpb-content-wrap{overflow-x:clip}
 :where(#bodyinside img,.wpb-content-wrap img,#bodyinside video,#bodyinside iframe){max-width:100%;height:auto}
}
.cch-extras a.cch-card{color:inherit}

@media(max-width:768px){
 header .brand a{flex-direction:row!important;justify-content:flex-start!important}
 header .brand img{margin:0!important}
 header .mega-menu-toggle{background:transparent!important;border:0!important;padding:0!important;min-height:0!important;height:auto!important;width:auto!important;box-shadow:none!important}
 header .mega-menu-toggle .mega-toggle-block{margin:0!important;padding:0!important}
 header #mega-menu-wrap-main-menu{background:transparent!important}
}

/* ===== MOBILE: app-style header, bottom action bar, accordion footer ===== */
.cc-bar{display:none}
@media(max-width:768px){
 .top-mobile-sec{display:none!important}
 body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
 header #desktop{padding:5px 12px!important}
 header .brand img{width:38px!important;max-height:34px}
 header .brand a{font-size:12.5px!important}
 .cc-bar{position:fixed;left:0;right:0;bottom:0;z-index:99990;display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid #e3e8f2;box-shadow:0 -12px 30px -18px rgba(7,13,31,.55)}
 .cc-bar a{display:flex;align-items:center;justify-content:center;gap:6px;padding:11px 6px;border-radius:12px;font-weight:700;font-size:14px;text-decoration:none!important;white-space:nowrap}
 .cc-bar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
 .cc-bar .c{background:#eef4ff;color:#1d4ed8!important}.cc-bar .w{background:#e8f9ef;color:#0f7a3f!important}.cc-bar .q{background:#ff7a1a;color:#fff!important}
 #ccb-fab{bottom:76px!important;right:12px!important}
 #ccb{bottom:150px!important;height:min(520px,calc(100vh - 180px))!important}
 body.modal-cacsp-open .modal-cacsp-position{bottom:66px!important}
 /* footer */
 footer .addresscontent{display:block!important;padding:0 12px!important}
 footer .addresscontent .card{width:100%!important;margin:0 0 10px!important;padding:0!important;min-height:0!important;height:auto!important}
 footer .card.cc-fold h4{cursor:pointer;display:flex!important;justify-content:space-between;align-items:center;margin:0!important;padding:15px 18px!important}
 footer .card.cc-fold h4::after{position:static!important;width:auto!important;height:auto!important;background:none!important;content:"+";font-size:22px;line-height:1;color:var(--cc-cyan)!important;transition:transform .2s}
 footer .card.cc-fold.open h4::after{transform:rotate(45deg)}
 footer .card.cc-fold:not(.open) section+section,footer .card.cc-fold:not(.open) .menu{display:none!important}
 footer .card.cc-fold.open section+section{padding:0 18px 14px!important}
 footer .card:not(.cc-fold){padding:16px 18px!important}
 footer .footerProductsLogo{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:10px;scroll-snap-type:x proximity;padding:6px 12px;margin:0!important;scrollbar-width:none}
 footer .footerProductsLogo::-webkit-scrollbar{display:none}
 footer .footerProductsLogo li{flex:0 0 auto;scroll-snap-align:start}
 footer .copyright{flex-direction:column!important;align-items:center!important;gap:12px;text-align:center;padding:14px 12px!important}
 footer .social-footer{display:flex!important;flex-wrap:wrap;justify-content:center;gap:12px}
 footer .footerLogo h6{text-align:center}
}

/* QA: footer logo strip must scroll inside its own box, never widen the page */
@media(max-width:768px){
 footer,footer .container{max-width:100%;overflow-x:clip}
 footer .footerLogo{max-width:100%;width:100%;min-width:0;overflow:hidden}
 footer .copyright>*{min-width:0;max-width:100%}
 footer .footerProductsLogo{max-width:100%;width:100%}
}

/* QA: keep the chat orb clear of the bottom action bar */
@media(max-width:768px){
 #ccb-fab{bottom:92px!important;right:10px!important}
 #ccb-btn{width:62px!important;height:62px!important}
 #ccb{bottom:162px!important}
}
