/* Shared presentation for the corporate site, independent of the vendor theme. */
:root { --site-ink: #14253d; --site-muted: #566579; --site-accent: #2f55d4; }
#topnav { background: #fff; box-shadow: 0 1px 14px rgba(20,37,61,.08); }
#topnav .logo .l-light { display: none; }
#topnav .logo .l-dark { display: inline-block; }
#topnav .submenu.megamenu img { width: 100%; height: 110px; object-fit: cover; }
.page-hero {
    position: relative;
    isolation: isolate;
    padding: 148px 0 64px;
    background: #14253d;
    color: #fff;
}
.page-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,24,44,.96), rgba(10,24,44,.85) 45%, rgba(10,24,44,.66)), var(--hero-image);
    background-size: cover;
    background-position: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.2; max-width: 920px; margin: 0 0 22px; }
.page-hero p { max-width: 850px; color: #edf1f8; font-size: 1.06rem; line-height: 1.8; margin: 0; }
.page-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; font-size: .75rem; letter-spacing: .08em; }
.page-breadcrumb a, .page-breadcrumb span { color: #d8e3f5; }
.page-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero--compact { padding-bottom: 38px; }
.page-hero--compact h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0; }
.page-hero--compact p { margin-top: 20px; }
#main-content > .section { padding: 72px 0; }
#main-content .page-detail { background: #fff; }
.page-detail .row > [class*="col-"]:empty,
.page-detail .row:empty,
.page-detail .section-title:empty { display: none; }
.page-detail .card { overflow: hidden; border-radius: 14px !important; }
.page-detail .card-body { padding: 28px; }
.page-detail .card-body > img { width: 100%; height: 190px; object-fit: cover; }
.page-detail > .container > .row.align-items-center > [class*="col-"] > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
#main-content p, #main-content li { line-height: 1.8; }
#main-content .text-muted { color: var(--site-muted) !important; }
#main-content .bg-light { background-color: #f4f7fb !important; }
#main-content .bg-light .container.text-center { max-width: 850px; }
#main-content .bg-light .container.text-center .btn { margin-top: 12px; }
.home-slider .bg-home { background-image: var(--slide-image); background-position: center; background-size: cover; min-height: 680px; height: auto; padding: 150px 0 100px; }
.home-slider .bg-overlay { background: linear-gradient(90deg, rgba(10,24,44,.91), rgba(10,24,44,.68)); }
.home-slider .heading { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.2; }
.home-slider .para-desc { max-width: 760px; }
.home-slider .text-white-50 { color: #e1e8f3 !important; }
.solution-card { overflow: hidden; border-radius: 16px; transition: transform .2s, box-shadow .2s; }
.solution-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(20,37,61,.12) !important; }
.solution-card .card-img-top { width: 100%; height: 210px; object-fit: cover; }
.solution-card .card-body { padding: 28px; }
.solution-link { font-weight: 600; }
.solution-link::after { content: " →"; }
#main-content form label { display: block; }
#main-content input, #main-content textarea, #main-content select { max-width: 100%; }
#main-content figure img { height: auto; }
#main-content > .section .row > [class*="col-"] { min-width: 0; }
.footer .logo-footer img { max-width: 100%; height: auto; }
@media (max-width: 991px) {
    .page-hero { padding-top: 124px; }
    #topnav .submenu.megamenu img { height: auto; }
    .home-slider .bg-home { min-height: 620px; }
}
@media (max-width: 575px) {
    .page-hero { padding: 116px 0 40px; }
    .page-hero::before { background-image: linear-gradient(rgba(10,24,44,.86), rgba(10,24,44,.86)), var(--hero-image-mobile, var(--hero-image)); }
    #main-content > .section { padding: 48px 0; }
    .page-hero p { font-size: 1rem; }
    .home-slider .bg-home { padding: 110px 24px 75px; min-height: 700px; }
    .home-slider .heading { font-size: 1.95rem; }
    .home-slider .title-heading { margin-top: 0 !important; }
    .page-detail .card-body, .solution-card .card-body { padding: 22px; }
    .page-detail .row.align-items-center > [class*="col-"] > img { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .solution-card { transition: none; }
    .solution-card:hover { transform: none; }
    .home-slider .animated { animation: none !important; }
}

#main-content > .error-page { padding-top: 160px; min-height: 65vh; }

.footer .logo-footer img { width: 190px; }
.footer .btn-soft-primary { background: #2f55d4; color: #fff; }
.footer .text-foot { color: #c7d3e3; }
.cookie-popup { max-width: min(420px, calc(100vw - 32px)); left: 16px; right: auto; bottom: 16px; width: auto; }
.cookie-popup-actions button { min-width: 36px; min-height: 36px; }

.footer .btn-soft-primary { background-color: #2f55d4 !important; color: #fff !important; }
.cookie-popup .text-success { color: #08764b !important; }
.cookie-popup .text-muted { color: var(--site-muted) !important; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 2000; padding: 12px 18px; background: #fff; color: #14253d; transform: translateY(-150%); border: 2px solid #2f55d4; border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
#topnav button.navbar-toggle { background: none; }

#main-content h1, #main-content h2, #main-content h3 { overflow-wrap: anywhere; hyphens: auto; }

.form-status[hidden] { display: none; }
.form-status { margin-bottom: 20px; }
.footer .form-status { color: #14253d; }
.form-status.alert-info { color: #24458c; background-color: #edf2ff; border-color: #c8d5fa; }
.form-status.alert-danger { color: #9f1838; background-color: #fff1f3; border-color: #f8c9d2; }
.form-status.alert-success { color: #16603d; background-color: #eaf8ef; border-color: #b8dfc8; }
button:disabled, input[type="submit"]:disabled { cursor: wait; }

#topnav .menu-trigger { display: block; border: 0; background: transparent; color: #212529; font-family: var(--bs-font-sans-serif); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 24px; padding: 25px 15px; min-height: 62px; }
#topnav .navigation-menu > li.active > .menu-trigger, #topnav .menu-trigger:hover { color: #2f55d4; }
#topnav .submenu a { color: #212529 !important; }
#topnav .submenu a:hover, #topnav .submenu a[aria-current="page"] { color: #2f55d4 !important; }
#topnav .has-submenu.is-open > .submenu { visibility: visible; opacity: 1; margin-top: 0; }
#topnav .menu-trigger:focus-visible, #topnav .navbar-toggle:focus-visible, #topnav a:focus-visible { outline: 2px solid #2f55d4; outline-offset: 3px; border-radius: 3px; }
.slideshow-toggle { position: absolute; bottom: 20px; right: 24px; z-index: 3; border: 1px solid rgba(255,255,255,.65); border-radius: 6px; padding: 8px 14px; background: #14253d; color: #fff; font-size: 13px; }
.slideshow-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (min-width: 992px) and (max-width: 1199px) { #topnav .menu-trigger { padding-left: 8px; padding-right: 8px; } }
@media (max-width: 991px) { #topnav .menu-trigger { width: 100%; text-align: left; padding: 10px 20px; min-height: 44px; } }

@media (min-width: 992px) {
    #topnav .navigation-menu > li.has-submenu:not(.is-open) > .submenu { display: none; visibility: hidden; opacity: 0; pointer-events: none; }
    #topnav .navigation-menu > li.has-submenu.is-open > .submenu { pointer-events: auto; }
}

#topnav .navigation-menu > li .submenu { transition: opacity .15s ease, margin-top .15s ease; }
@media (prefers-reduced-motion: reduce) { #topnav .navigation-menu > li .submenu { transition: none; } }

/* Visibility must change immediately so newly opened links can receive focus. */
#topnav .navigation-menu > li .submenu li a { transition: color .15s ease, background-color .15s ease; }

#topnav .has-submenu.is-open > .menu-arrow { transform: rotate(225deg); }

@media (max-width: 359px) {
    #topnav .logo img { height: 48px; width: auto; }
    #topnav .logo { margin-right: 6px; }
}

@media (max-width: 575px) { .home-slider .bg-home { background-image: var(--slide-image-mobile, var(--slide-image)); } }

.contact-illustration { overflow: hidden; border-radius: 14px; }
.contact-direct { padding: 24px; background: #f3f6fb; border: 1px solid #e0e6ef; border-radius: 14px; }
.contact-email { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 12px 0; color: #2445b1; font-weight: 600; text-decoration: none !important; }
.contact-email svg { width: 22px; height: 22px; flex-shrink: 0; }
.contact-email span:first-of-type { min-width: 0; overflow-wrap: anywhere; }
.contact-email:hover { color: #173991; }
.contact-email:focus-visible { outline: 2px solid #2f55d4; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 767px) { .contact-illustration { margin-top: 28px; } }

/* Keep photographic heroes readable even over the brightest image areas. */
.home-slider .carousel-control-prev, .home-slider .carousel-control-next {
    top: auto; bottom: 20px; width: 44px; height: 44px; opacity: 1; transform: none;
    border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background-color: #14253d;
}
.home-slider .carousel-control-prev { left: 24px; }
.home-slider .carousel-control-next { left: 80px; right: auto; }
.home-slider .carousel-control-prev:focus-visible, .home-slider .carousel-control-next:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.slideshow-toggle { min-height: 44px; }
@media (max-width: 575px) {
    .home-slider .carousel-control-prev { left: 16px; }
    .home-slider .carousel-control-next { left: 68px; }
    .slideshow-toggle { right: 16px; }
}
/* Product screenshots open above an inert page; native dialog handles focus and Escape. */
.product-screen-preview { cursor: zoom-in; }
.product-screen-preview:focus-visible { outline: 3px solid #3456d8; outline-offset: 4px; }
.image-preview-open { overflow: hidden; }
.image-preview { width: min(96vw, 1680px); max-width: none; max-height: 94vh; max-height: 94dvh; padding: 0; border: 0; border-radius: 12px; background: #fff; color: #17283d; box-shadow: 0 24px 90px rgba(0,0,0,.35); }
.image-preview::backdrop { background: rgba(3,9,20,.88); }
.image-preview:not([open]) { display: none; }
.image-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 16px; border-bottom: 1px solid #e7ecf2; }
.image-preview-close { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 8px; color: #17283d; background: #edf2f8; font-size: 30px; line-height: 1; cursor: pointer; }
.image-preview-close:focus-visible { outline: 3px solid #3456d8; outline-offset: 2px; }
.image-preview-stage { display: flex; align-items: center; justify-content: center; padding: 8px; background: #eaf0f6; }
.image-preview-stage[aria-busy="true"] { min-height: 180px; }
.image-preview-stage img[hidden] { display: none; }
.image-preview-status { padding: 12px 16px; margin: 0; color: #42516a; }
.image-preview-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(94vh - 130px); max-height: calc(94dvh - 130px); object-fit: contain; }
.image-preview-caption { padding: 10px 16px; font-size: 14px; line-height: 1.5; }
.product-screen-row figcaption p { line-height: 1.85; }
.product-brand { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.product-brand-logo { display: block; width: auto; height: auto; max-width: 190px; max-height: 61px; object-fit: contain; }
.product-brand-logo-frame { display: block; }
.product-brand--carbonsuite .product-brand-logo-frame { width: 200px; height: 135px; overflow: hidden; }
.product-brand--carbonsuite .product-brand-logo { width: 200px; max-width: none; max-height: none; transform: translateY(-32px); }
.product-brand-name { font-size: 22px; font-weight: 700; color: #17283d; }
.workcube-module-image { display: block; width: 100%; height: 160px; object-fit: contain; }
@media (max-width: 575px) { .product-brand { gap: 14px; } .product-brand-name { font-size: 19px; } }

/* Compact product previews open at full resolution in the shared dialog. */
.product-screen-row { align-items:start!important; padding:24px 0; border-bottom:1px solid #e9edf3; }
.product-screen-preview { background:#f2f5f9; }
.product-screen-row .product-screen-preview { max-width:300px; margin-inline:auto; }
#main-content .product-screen-row .product-screen-preview img { display:block; width:100%; height:180px; object-fit:contain; }
.dashboard-overview { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:12px 32px; align-items:start; }
.dashboard-overview h2,.dashboard-overview > p { grid-column:1; }
.dashboard-overview figure { grid-column:2; grid-row:1 / span 3; margin:0; }
.dashboard-overview img { width:100%; height:auto; }
@media(max-width:767px) {
 .product-screen-row .product-screen-preview { margin-inline:0; max-width:280px; }
 .dashboard-overview { display:block; }
 .dashboard-overview figure { max-width:280px; }
}

.editorial-image { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:18px; }
.editorial-eyebrow { color:#3d4bc5; font-size:.8rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.service-intro p,.about-company p { line-height:1.85; }
.values-panel { padding:36px; border-radius:20px; background:#f3f6fb; }
.value-item { display:flex; align-items:start; gap:18px; padding:24px; background:white; height:100%; border-radius:12px; }
.value-number { color:#4254bd; font-size:1.5rem; font-weight:700; }
.company-contact-panel { border-left:4px solid #4254bd; background:#f3f6fb; padding:32px; border-radius:0 16px 16px 0; }
@media(max-width:575px) { .values-panel {padding:24px 16px;} .value-item {padding:20px 16px;} .company-contact-panel {padding:24px;} }

.product-screen-preview { position:relative; }
.product-screen-zoom { position:absolute; right:8px; bottom:8px; display:grid; place-items:center; width:32px; height:32px; border-radius:8px; color:#243ca2; background:#fff; box-shadow:0 1px 8px #14253d24; pointer-events:none; }
.product-screen-zoom svg { width:18px; height:18px; }

.service-icon { display:grid; place-items:center; width:46px; height:46px; margin-bottom:20px; background:#edf1fc; color:#334db6; border-radius:12px; }
.service-icon svg { width:23px; height:23px; stroke-width:1.7; }
.page-detail .card-body > .workcube-module-image { height:160px; object-fit:contain; }
.section.product-screens { padding-bottom: 32px; }
.section.solution-guide { padding: 56px 0; }
.related-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.related-links > li { display: flex; min-width: 0; }
.solution-guide .related-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px;
    border: 1px solid #e0e6ef;
    border-radius: 14px;
    background: #f8faff;
    color: #24324e;
    text-decoration: none !important;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.related-link-label { min-width: 0; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.related-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e8edfc;
    color: #2445b1;
}
.solution-guide .related-link:hover {
    border-color: #aabbe8;
    background: #fff;
    color: #2445b1;
    box-shadow: 0 8px 24px rgba(36, 50, 78, .08);
}
.solution-guide .related-link:focus-visible,
.resource-link:focus-visible { outline: 2px solid #2f55d4; outline-offset: 4px; }
.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #edf2ff;
    color: #2445b1;
    font-weight: 600;
    text-decoration: none !important;
}
.resource-link::after { content: "\2197"; }
.resource-link:hover { background: #e2e9fc; color: #173991; }
@media (max-width: 991px) {
    .related-links { grid-template-columns: 1fr; gap: 12px; }
    .solution-guide .related-link { padding: 16px 18px; }
}
