:root {
    --cms-blue: #24366e;
    --cms-gold: #c89c44;
}
.cms-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 22px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 40px;
    padding: 13px 20px;
    background: #128c4a;
    color: #fff !important;
    box-shadow: 0 8px 28px #0003;
    font: 600 14px Arial;
    text-decoration: none;
}
.cms-banner {
    position: relative;
    max-width: 1200px;
    margin: 35px auto;
    overflow: hidden;
    border-radius: 16px;
}
.cms-slide img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
}
.cms-slide span {
    position: absolute;
    left: 30px;
    bottom: 30px;
    color: #fff;
    background: #081138bd;
    padding: 12px 24px;
}
.cms-banner-controls {
    position: absolute;
    right: 15px;
    bottom: 15px;
    display: flex;
    gap: 6px;
}
.cms-banner-controls button {
    border-radius: 50%;
    min-width: 40px;
    padding: 8px;
}
.cms-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.cms-inquiry .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.cms-inquiry label {
    display: block;
    margin-bottom: 12px;
}
.cms-inquiry input,
.cms-inquiry select,
.cms-inquiry textarea {
    width: 100%;
}
.cms-form-status {
    padding: 12px 0;
}
.cms-blog {
    max-width: 1200px;
    margin: auto;
    padding: 60px 25px;
    min-height: 65vh;
}
.cms-blog-heading {
    text-align: center;
    margin-bottom: 40px;
}
.cms-blog-heading h1 {
    color: #081138;
}
.cms-blog-heading form {
    display: flex;
    max-width: 500px;
    margin: 25px auto;
    gap: 10px;
}
.cms-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.cms-post-grid article {
    border: 1px solid #e5e8ee;
    border-radius: 12px;
    padding: 24px;
    background: white;
    box-shadow: 0 6px 24px #08113808;
}
.cms-post-grid article > img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.cms-post-grid h2 {
    font-size: 21px;
    line-height: 1.6;
}
.cms-post-grid article > span {
    font-size: 12px;
    color: #6f7786;
}
.cms-read-more {
    font-weight: bold;
}
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}
.pagination a {
    border: 1px solid #d9deea;
    border-radius: 6px;
    padding: 7px 14px;
}
.pagination a[aria-current] {
    background: #24366e;
    color: #fff;
}
.eyebrow {
    letter-spacing: 0.14em;
    font-size: 12px;
    color: #a27a30;
}
.trp-language-switcher,
.trp-language-switcher-container,
#qlwapp {
    display: none !important;
}
[hidden] {
    display: none !important;
}
@media (max-width: 768px) {
    .cms-post-grid {
        grid-template-columns: 1fr;
    }
    .cms-inquiry .row {
        grid-template-columns: 1fr;
    }
    .cms-slide img {
        height: 230px;
    }
    .cms-whatsapp span {
        display: none;
    }
    .cms-whatsapp {
        padding: 13px;
        bottom: 18px;
        right: 16px;
    }
    .cms-drawer-open #offcanvas {
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .cms-drawer-open #offcanvas .ct-panel-inner {
        transform: none !important;
    }
}

.cms-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    background: #081138;
    color: #fff;
}
.cms-social:has(a) {
    padding: 15px;
}
.cms-social a {
    color: #d7b575;
}
@media (max-width: 1199px) {
    body.cms-drawer-open {
        overflow: hidden;
    }
    .cms-drawer-open #offcanvas {
        display: flex !important;
        pointer-events: auto;
        position: fixed;
        inset: 0;
        z-index: 2000;
        background: rgba(8, 17, 56, 0.55);
        visibility: visible !important;
        opacity: 1 !important;
    }
    .cms-drawer-open #offcanvas .ct-panel-inner {
        width: min(88vw, 360px);
        height: 100%;
        margin-left: auto;
        background: #081138;
        transform: none !important;
        overflow: auto;
    }
    .cms-drawer-open #offcanvas .ct-panel-content[data-device='desktop'] {
        display: none;
    }
    .cms-drawer-open #offcanvas .ct-panel-content[data-device='mobile'] {
        display: block;
        padding: 24px;
    }
    .cms-drawer-open #offcanvas a {
        color: #fff;
    }
    .cms-drawer-open #offcanvas .ct-toggle-close {
        color: #fff;
        display: flex;
        margin: 20px 20px 0 auto;
    }
}

.cms-lightbox {
    border: 0;
    background: transparent;
    padding: 20px;
    max-width: 96vw;
    max-height: 96vh;
    overflow: hidden;
}
.cms-lightbox::backdrop {
    background: #000d;
}
.cms-lightbox img {
    display: block;
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
}
.cms-lightbox button {
    position: fixed;
    background: #172440dd;
    color: white;
    border: 1px solid #ffffff40;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 28px;
}
.lightbox-close {
    top: 20px;
    right: 20px;
}
.lightbox-prev {
    left: 20px;
    top: 50%;
}
.lightbox-next {
    right: 20px;
    top: 50%;
}

/* Shared chrome stays independent of imported per-page theme styles. */
#header { position: relative; z-index: 1100; background: #101735; }
#header [data-row='middle'] > .ct-container { min-height: 128px; }
#header .site-logo-container img { width: 200px; height: auto; max-height: none; }
#header [data-device='desktop'] [data-column='end'] > [data-items='primary'] {
    flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px;
}
#header .cms-languages { display: flex; align-items: center; gap: 8px; }
#header .cms-languages a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 36px; padding: 4px 8px;
    color: #e4e7ef; font-size: 13px; line-height: 1.5; text-decoration: none;
    border-bottom: 2px solid transparent;
}
#header .cms-languages a[aria-current] { color: #efd58c; border-bottom-color: #efd58c; }
#header .cms-languages a:hover { color: #fff; }
#header .menu { gap: 20px; }
#header .ct-menu-link { padding-inline: 0; min-height: 44px; }
.cms-language-picker { position: relative; margin: 0; }
.cms-language-picker summary {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    min-width: 52px; min-height: 44px; padding: 0 6px;
    color: #efd58c; font-size: 14px; cursor: pointer; list-style: none;
}
.cms-language-picker summary::-webkit-details-marker { display: none; }
#header .cms-language-picker .cms-languages {
    position: absolute; right: 0; top: calc(100% + 8px); flex-direction: column;
    min-width: 116px; padding: 8px; border: 1px solid #d9deea;
    border-radius: 8px; background: #fff; box-shadow: 0 8px 24px #0002;
}
#header .cms-language-picker .cms-languages a { color: #24366e; width: 100%; min-height: 44px; }
#header .cms-language-picker .cms-languages a[aria-current] { background: #f4f1e7; border-color: #b38a32; }
#header a:focus-visible, #header summary:focus-visible, #header button:focus-visible,
#offcanvas a:focus-visible, #offcanvas button:focus-visible { outline: 2px solid #efd58c; outline-offset: 3px; }
.cms-whatsapp { z-index: 1000; background: #128c4a; }
.cms-whatsapp svg { display: block; width: 28px; height: 28px; flex: 0 0 28px; fill: currentColor; }
#main h1 { font-size: clamp(26px, 2.65vw, 38px); line-height: 1.4; text-wrap: balance; }
#main h2 { text-wrap: balance; }
#main .cms-home-company { display: block; margin-top: 10px; font-size: .7em; line-height: 1.5; }
body[data-page='clients'] #main .elementor-container {
    width: calc(100% - 40px); max-width: 1140px; margin-inline: auto;
}
body[data-page='clients'] #main .elementor-column { width: 100%; }
body[data-page='clients'] #main .elementor-widget-wrap { width: 100%; }
body[data-page='clients'] #main .elementor-widget { width: 100%; }
body[data-page='clients'] #main .kh-intro { margin-inline: auto; }
body[data-page='clients'] #main .elementor > section:first-child {
    padding: 48px 0; background: #101735; color: #fff; text-align: center;
}
body[data-page='clients'] #main h1 { color: #fff; margin: 0; width: 100%; }
body[data-page='contact'] #main .kh-hero { padding-block: 40px; }
body[data-page='contact'] #main .kh-hero p { max-width: 850px; margin-inline: auto; }
#footer [data-row='middle'] { padding-block: 40px; }
#footer [data-row='bottom'] { padding-block: 20px; }
#footer .ct-footer-copyright p { margin-block: 6px; }
#footer .contact-text { overflow-wrap: anywhere; }
@media (min-width: 1200px) {
    #header > [data-device='desktop'] { display: block; }
    #header > [data-device='mobile'] { display: none; }
}
@media (max-width: 1199px) {
    #header > [data-device='desktop'] { display: none; }
    #header > [data-device='mobile'] { display: block; }
    #header [data-row='middle'] > .ct-container {
        min-height: 96px; width: calc(100% - 32px); grid-template-columns: auto auto;
    }
    #header .site-logo-container img { width: 150px; height: auto; }
    #header [data-column='end'] > [data-items='primary'] { gap: 8px; }
    #header .ct-header-trigger { min-width: 44px; min-height: 44px; margin: 0; }
    #offcanvas .ct-menu-link { min-height: 48px; }
    #main h1 { font-size: 28px; line-height: 1.4; }
    body[data-page='home'] #main section:first-child { padding-block: 28px; }
    body[data-page='clients'] #main .elementor > section:first-child { padding-block: 32px; }
    body[data-page='clients'] #main .elementor-widget-wrap { padding-inline: 0; }
    body[data-page='contact'] #main .kh-hero { padding-block: 28px; }
    #footer [data-row='middle'] { padding-block: 28px; }
}
@media (max-width: 768px) {
    .cms-whatsapp { width: 52px; height: 52px; padding: 12px;
        bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; }
    #footer [data-row='bottom'] { padding-bottom: 80px; }
}
#header [data-row='middle'] [data-items='primary'] { height: auto; min-height: 0; }
#header [data-row='middle'] [data-column] { align-items: center; }
#header .site-branding, #header .site-logo-container { min-height: 0; height: auto; }
#header [data-device='desktop'] .menu-container,
#header [data-device='desktop'] .menu,
#header [data-device='desktop'] .ct-menu-link { height: auto; }
#header [data-device='desktop'] .ct-menu-link { padding-block: 8px; }
#header .cms-language-picker:not([open]) > .cms-languages { display: none; }
body[data-page='contact'] #main .kh-hero .kh-btns { margin-block: 24px; }
#footer [data-row='middle'] > .ct-container { padding-block: 0; row-gap: 28px; }
#main .kh-table-wrap { max-width: 100%; overflow-x: auto; }
#main .kh-table-wrap:focus-visible { outline: 2px solid #24366e; outline-offset: 3px; }
#main .ha-ihe-wrapper.grid { width: 100%; max-width: 100%; }
#main .ha-ihe-wrapper .ha-ihe-fig { width: 100%; max-width: 100%; min-width: 0; }
