/* WordPress controls added to the approved preview structure. */
.nextcore-native [hidden] { display: none !important; }
.nextcore-native .nextcore-menu, .nextcore-native .sub-menu, .nextcore-native .footer-menu { margin: 0; padding: 0; list-style: none; }

.nextcore-desktop-nav > .nextcore-menu { display: flex; align-items: center; gap: 26px; }
.nextcore-desktop-nav .nextcore-menu li { position: relative; }
.nextcore-native .nextcore-menu a { display: inline-block; }
.nextcore-native .nextcore-submenu-toggle { background: none; border: 0; padding: 9px 0; }
.nextcore-desktop-nav .sub-menu { position: absolute; left: 0; top: calc(100% + 16px); min-width: 260px; padding: 12px; border-radius: 0 0 16px 16px; background: var(--panel); border: 1px solid var(--border); box-shadow: 0 24px 45px rgba(0, 0, 0, .24); }
.nextcore-desktop-nav .sub-menu a { white-space: normal; padding: 11px 14px; }
.nextcore-desktop-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.nextcore-desktop-actions, .nextcore-mobile-actions, .nextcore-language-switch { display: flex; align-items: center; gap: 8px; }
.nextcore-language-switch a { font-size: 13px; }
.nextcore-native .header-inner { gap: 24px; }
.nextcore-native .header-actions { gap: 12px; }
.nextcore-native .nextcore-theme-switch { font-size: 23px; width: 32px; }
.nextcore-native .icon-button { flex-shrink: 0; }
.nextcore-native .main-nav { gap: 0; }
.nextcore-mobile-panel { width: 100%; }
.nextcore-mobile-panel .nextcore-menu a { padding: 10px 8px; }
.nextcore-mobile-panel .sub-menu { padding-left: 18px; }
.nextcore-mobile-panel { background: var(--bg); color: var(--text); max-height: calc(100svh - 82px); overflow-y: auto; padding: 12px 24px; }
/* Header refresh inspired by the modular reference, adapted to the current dark/red theme. */
.nextcore-site-header.nextcore-native { background: rgba(7, 11, 13, .86); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
body.nextcore-homepage .nextcore-site-header.nextcore-native { position: fixed; }
body:not(.nextcore-homepage) .nextcore-site-header.nextcore-native { position: sticky; top: 0; background: rgba(7, 11, 13, .96); }
.nextcore-native .header-inner { min-height: 88px; gap: 24px; }
.nextcore-native .brand { width: 166px; padding-block: 10px; flex-shrink: 0; overflow: hidden; }
.nextcore-native .brand img { width: 100%; height: 56px; object-fit: contain; object-position: left center; }
.nextcore-native .main-nav { margin-left: auto; }
.nextcore-desktop-nav > .nextcore-menu { gap: 26px; }
.nextcore-desktop-nav .nextcore-menu li { display: flex; align-items: center; gap: 4px; }
.nextcore-native .main-nav a,
.nextcore-native .nextcore-submenu-toggle { color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.45; letter-spacing: 0; }
.nextcore-native .main-nav a { position: relative; padding-block: 12px; }
.nextcore-native .nextcore-submenu-toggle { display: inline-flex; align-items: center; padding: 9px 0; }
.nextcore-native .main-nav a:hover,
.nextcore-native .main-nav .current-menu-item > a,
.nextcore-native .main-nav .current_page_item > a,
.nextcore-native .main-nav .menu-item-has-children:hover > a,
.nextcore-native .main-nav .menu-item-has-children:hover > .nextcore-submenu-toggle { color: var(--text); }
.nextcore-native .main-nav a::after { content: ''; position: absolute; left: 0; bottom: 5px; width: 0; height: 2px; background: var(--red); transition: width .2s ease; }
.nextcore-native .main-nav a:hover::after,
.nextcore-native .main-nav .current-menu-item > a::after,
.nextcore-native .main-nav .current_page_item > a::after { width: 18px; }
.nextcore-native .header-actions { gap: 12px; }
.nextcore-native .nextcore-language-switch a { font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 2px; }
.nextcore-native .nextcore-language-switch a:hover { color: var(--text); }
.nextcore-native .nextcore-language-switch a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nextcore-native .nextcore-language-flag { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }
.nextcore-native .icon-button { width: 42px; height: 42px; border-radius: 50%; color: var(--text); }
.nextcore-native .icon-button:hover { background: rgba(255, 255, 255, .08); }
.nextcore-native .nextcore-header-cta { min-height: 46px; padding: 12px 20px; border-radius: 999px; font-size: 13px; gap: 18px; }
.nextcore-desktop-nav .sub-menu { top: calc(100% + 16px); min-width: 260px; padding: 12px; border-radius: 0 0 16px 16px; background: var(--panel); box-shadow: 0 24px 45px rgba(0, 0, 0, .24); }
.nextcore-desktop-nav .sub-menu a { display: block; width: 100%; padding: 11px 14px; font-size: 13px; border-radius: 8px; }
.nextcore-desktop-nav .sub-menu a:hover { background: rgba(223, 0, 0, .1); }
.nextcore-native .company-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.nextcore-native .mode-image:not([src]) { visibility: hidden; }
.nextcore-native .company-video { background-image: none; }
.nextcore-native .company-video-media { z-index: -2; }
.nextcore-native .team-contacts a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #333; border: 1px solid #ddd; border-radius: 50%; background: #fff; }
.nextcore-native .team-contacts a:hover { color: #df0000; border-color: #df0000; }
.nextcore-native .project-card[href] { display: block; }
.nextcore-native .testimonial-card { position: relative; }
.nextcore-native .round-button { display: inline-grid; place-items: center; }
.nextcore-native .blog-excerpt { margin-top: 12px; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nextcore-native .blog-image-link { display: block; }
.nextcore-native .blog-card h3 a::after { content: ''; position: absolute; inset: 0; }
.nextcore-native .social-links a { font-size: 12px; width: auto; padding-inline: 8px; }
:root:not([data-theme]) .nextcore-site-header { position: relative; }
.nextcore-native .final-cta picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.nextcore-native .nextcore-search-form { display: grid; gap: 16px; margin-top: 24px; }
.nextcore-native .nextcore-search-form label { display: grid; gap: 8px; }
.nextcore-native .nextcore-search-form input { width: 100%; padding: 12px; color: var(--text); background: var(--panel); border: 1px solid var(--border); }
.nextcore-native .nextcore-search-form button { padding: 12px; background: var(--red); color: white; border: 0; }
.nextcore-skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: white; color: black; padding: 12px; }
.nextcore-skip-link:focus { top: 10px; }
body:not(.nextcore-homepage) .nextcore-site-header { position: relative; background: var(--bg); }
body.admin-bar .nextcore-site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nextcore-site-header { top: 46px; } }

/* Final header and mega-menu overrides. */
.nextcore-site-header.nextcore-native {
    --nextcore-header-surface: #0d1417;
    --nextcore-header-elevated: #121b1f;
    --nextcore-header-hover: #182328;
    --nextcore-header-border: rgba(255, 255, 255, .16);
    --nextcore-header-muted: #c4cdd1;
    background: rgba(13, 20, 23, .96);
    border-bottom: 1px solid var(--nextcore-header-border);
    box-shadow: 0 12px 38px rgba(0, 0, 0, .34);
}
body.nextcore-homepage .nextcore-site-header.nextcore-native { position: fixed; }
body:not(.nextcore-homepage) .nextcore-site-header.nextcore-native { position: sticky; top: 0; background: rgba(13, 20, 23, .98); }
body.admin-bar:not(.nextcore-homepage) .nextcore-site-header.nextcore-native { top: 32px; }
.nextcore-native .header-inner { min-height: 88px; gap: 24px; }
.nextcore-native .brand { width: 166px; padding-block: 10px; flex-shrink: 0; overflow: hidden; }
.nextcore-native .brand img { width: 100%; height: 70px; object-fit: contain; object-position: left center; }
.nextcore-desktop-nav > .nextcore-menu { gap: 26px; }
.nextcore-desktop-nav > .nextcore-menu > li { display: flex; align-items: center; gap: 4px; }
.nextcore-native .main-nav a,
.nextcore-native .nextcore-submenu-toggle { color: var(--nextcore-header-muted); font-size: 14px; font-weight: 600; line-height: 1.45; letter-spacing: 0; }
.nextcore-desktop-nav > .nextcore-menu > li > a { position: relative; padding-block: 12px; }
.nextcore-desktop-nav > .nextcore-menu > li > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left center; transition: transform .2s ease; }
.nextcore-desktop-nav > .nextcore-menu > li > a:hover::after,
.nextcore-desktop-nav > .nextcore-menu > li.current-menu-item > a::after,
.nextcore-desktop-nav > .nextcore-menu > li.current_page_item > a::after,
.nextcore-desktop-nav > .nextcore-menu > li.current-menu-ancestor > a::after { width: auto; transform: scaleX(1); }
.nextcore-desktop-nav > .nextcore-menu > li > a:hover,
.nextcore-desktop-nav > .nextcore-menu > li.current-menu-item > a,
.nextcore-desktop-nav > .nextcore-menu > li.current_page_item > a,
.nextcore-desktop-nav > .nextcore-menu > li.current-menu-ancestor > a,
.nextcore-desktop-nav > .nextcore-menu > li:hover > a,
.nextcore-desktop-nav > .nextcore-menu > li:hover > .nextcore-submenu-toggle { color: var(--text); }
.nextcore-native .nextcore-submenu-toggle { display: inline-flex; align-items: center; padding: 9px 0; }
.nextcore-native .nextcore-submenu-toggle span { display: inline-block; transition: transform .2s ease; }
.nextcore-native .nextcore-submenu-toggle[aria-expanded="true"] span { transform: rotate(180deg); color: var(--red); }
.nextcore-native .header-actions { gap: 12px; }
.nextcore-native .nextcore-language-switch a { font-size: 13px; font-weight: 700; color: var(--nextcore-header-muted); padding: 8px 2px; }
.nextcore-native .nextcore-language-switch a:hover { color: var(--text); }
.nextcore-native .icon-button { width: 42px; height: 42px; border-radius: 50%; color: var(--text); }
.nextcore-native .icon-button:hover { background: var(--nextcore-header-hover); }
.nextcore-native .nextcore-header-cta { min-height: 46px; padding: 12px 20px; border-radius: 999px; font-size: 13px; gap: 18px; }
.nextcore-desktop-nav .nextcore-mega-panel {
    position: fixed;
    left: max(24px, calc((100vw - var(--container)) / 2));
    right: max(24px, calc((100vw - var(--container)) / 2));
    top: 88px;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(360px, 1.45fr) minmax(245px, .78fr);
    gap: 24px;
    min-width: 0;
    padding: 24px 28px;
    background: var(--nextcore-header-elevated);
    color: var(--text);
    border: 1px solid var(--nextcore-header-border);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .04);
}
body.admin-bar .nextcore-desktop-nav .nextcore-mega-panel { top: 88px; }
.nextcore-mega-intro { padding-right: 24px; border-right: 1px solid var(--nextcore-header-border); }
.nextcore-mega-intro p { margin: 0 0 18px; color: var(--nextcore-header-muted); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.nextcore-mega-intro h3 { max-width: 260px; color: var(--text); font-size: clamp(24px, 2.1vw, 30px); line-height: 1.25; letter-spacing: 0; }
.nextcore-mega-intro > span { display: block; max-width: 270px; margin-top: 12px; color: var(--nextcore-header-muted); font-size: 13px; line-height: 1.65; }
.nextcore-mega-overview { display: inline-flex !important; align-items: center; gap: 18px; margin-top: 22px; padding: 0 !important; color: var(--nextcore-header-muted) !important; font-size: 13px !important; }
.nextcore-mega-overview span { color: var(--red); }
.nextcore-mega-overview::after,
.nextcore-mega-links a::after,
.nextcore-mega-feature::after { content: none !important; }
.nextcore-mega-links { display: grid; gap: 8px; align-content: start; }
.nextcore-mega-links a { display: grid !important; grid-template-columns: 38px minmax(0, 1fr) 24px; align-items: center; gap: 14px; min-height: 60px; padding: 7px 10px !important; border-radius: 10px; color: var(--text) !important; transition: background .2s ease, transform .2s ease; }
.nextcore-mega-links a:hover { background: var(--nextcore-header-hover); transform: translateX(3px); }
.nextcore-mega-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--nextcore-header-border); border-radius: 10px; color: var(--nextcore-header-muted); font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .035); }
.nextcore-mega-links strong { display: block; color: var(--text); font-size: 15px; line-height: 1.4; }
.nextcore-mega-links small { display: block; margin-top: 4px; color: var(--nextcore-header-muted); font-size: 12px; line-height: 1.45; }
.nextcore-mega-links em { justify-self: end; color: var(--nextcore-header-muted); font-size: 18px; font-style: normal; opacity: .72; }
.nextcore-mega-links a:hover em { color: var(--red); opacity: 1; }
.nextcore-mega-feature { position: relative; display: flex !important; min-height: 230px; overflow: hidden; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px !important; border-radius: 12px; background: #11171a; color: #fff !important; isolation: isolate; }
.nextcore-mega-feature img { position: absolute; inset: 0 0 auto; z-index: -2; width: 100%; height: 48%; object-fit: cover; opacity: .9; }
.nextcore-mega-feature::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 23, 26, .08), #11171a 56%); }
.nextcore-mega-feature > span { color: #aeb8bd; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.nextcore-mega-feature strong { font-size: 21px; line-height: 1.25; letter-spacing: 0; }
.nextcore-mega-feature small { color: #dce2e5; font-size: 12px; }
.nextcore-mega-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; width: auto; margin: 0 -28px -24px; padding: 14px 28px; border-top: 1px solid var(--nextcore-header-border); color: var(--nextcore-header-muted); background: rgba(255, 255, 255, .025); }
.nextcore-mega-bottom > span { display: inline-flex; align-items: center; justify-self: start; gap: 10px; min-width: 0; white-space: nowrap; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.nextcore-mega-bottom i { width: 5px; height: 5px; background: var(--red); border-radius: 50%; }
.nextcore-mega-bottom a { display: inline-flex !important; align-items: center; justify-self: end; gap: 18px; min-width: 0; white-space: nowrap; padding: 0 !important; color: var(--nextcore-header-muted) !important; font-size: 13px !important; }
.nextcore-mega-bottom a span { color: var(--red); font-size: 16px; }
:root[data-theme="light"] .nextcore-site-header.nextcore-native {
    --nextcore-header-surface: #fff;
    --nextcore-header-elevated: #fff;
    --nextcore-header-hover: #f4f5f5;
    --nextcore-header-border: #e1e4e4;
    --nextcore-header-muted: #5d686c;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 34px rgba(20, 30, 40, .09);
}
:root[data-theme="light"] body:not(.nextcore-homepage) .nextcore-site-header.nextcore-native { background: rgba(255, 255, 255, .98); }
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .nextcore-site-header.nextcore-native {
        --nextcore-header-surface: #fff;
        --nextcore-header-elevated: #fff;
        --nextcore-header-hover: #f4f5f5;
        --nextcore-header-border: #e1e4e4;
        --nextcore-header-muted: #5d686c;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 10px 34px rgba(20, 30, 40, .09);
    }
    :root:not([data-theme]) body:not(.nextcore-homepage) .nextcore-site-header.nextcore-native { background: rgba(255, 255, 255, .98); }
}
@media (min-width: 1200px) { .nextcore-native .nextcore-mobile-toggle, .nextcore-native .nextcore-mobile-panel { display: none !important; } }
@media (max-width: 1199px) {
    .nextcore-native .nextcore-desktop-nav, .nextcore-native .nextcore-desktop-actions { display: none; }
    .nextcore-native .nextcore-desktop-nav .nextcore-mega-panel { display: none !important; }
    .nextcore-native .header-inner { flex-wrap: wrap; }
    .nextcore-native .header-actions { margin-left: auto; }
    .nextcore-native .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 5px; background: transparent; order: 3; }
    .nextcore-native .menu-toggle span { display: block; width: 20px; height: 1px; background: var(--text); margin-inline: auto; }
    .nextcore-native .nextcore-mobile-panel { flex-basis: 100%; margin-inline: -24px; padding: 14px 24px 22px; border-top: 1px solid var(--border); background: rgba(7, 11, 13, .98); }
    .nextcore-mobile-panel .nextcore-menu a,
    .nextcore-mobile-panel .nextcore-submenu-toggle { font-size: 15px; font-weight: 600; color: var(--text); }
    .nextcore-mobile-panel .nextcore-menu a { display: block; padding: 12px 8px; }
    .nextcore-mobile-panel .sub-menu { position: static; min-width: 0; padding: 0 0 0 18px; border: 0; box-shadow: none; background: transparent; }
    .nextcore-mobile-panel .sub-menu a { font-size: 14px; color: var(--muted); }
}
@media (max-width: 480px) { .nextcore-native .nextcore-header-cta { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .nextcore-native .marquee-track { transform: none; animation: none; }
    .nextcore-native .tech-list[aria-hidden="true"] { display: none; }
    .nextcore-native .tech-list { flex-wrap: wrap; }
}

body.nextcore-homepage .final-cta:where(.nextcore-native, .nextcore-native *) { min-height: clamp(426px, 61svh, 582px); margin-bottom: 0; }
body.nextcore-homepage .cta-inner:where(.nextcore-native, .nextcore-native *) { min-height: clamp(426px, 61svh, 582px); padding-block: 44px 36px; }
body.nextcore-homepage .final-cta > img:where(.nextcore-native, .nextcore-native *),
body.nextcore-homepage .final-cta picture img:where(.nextcore-native, .nextcore-native *) { height: 100%; object-position: 65% center; }
body.nextcore-homepage .site-footer:where(.nextcore-native, .nextcore-native *) { background: #070b0d; color: var(--text); box-shadow: none; padding-block: 22px 24px; }
body.nextcore-homepage .site-footer .footer-grid:where(.nextcore-native, .nextcore-native *) { gap: 18px 28px; }
body.nextcore-homepage .site-footer h2:where(.nextcore-native, .nextcore-native *) { margin-block: 6px 10px; }
body.nextcore-homepage .site-footer .footer-contact address:where(.nextcore-native, .nextcore-native *) { gap: 8px; }
body.nextcore-homepage .site-footer .footer-copyright:where(.nextcore-native, .nextcore-native *) { padding-top: 12px; }

@media (max-width: 639px) {
    body.nextcore-homepage .final-cta:where(.nextcore-native, .nextcore-native *),
    body.nextcore-homepage .cta-inner:where(.nextcore-native, .nextcore-native *) { min-height: 51svh; }
    body.nextcore-homepage .cta-inner:where(.nextcore-native, .nextcore-native *) { padding-block: 28px 24px; }
    body.nextcore-homepage .cta-inner h2:where(.nextcore-native, .nextcore-native *) { font-size: 27px; }
    body.nextcore-homepage .cta-inner p:not(.cta-motto):where(.nextcore-native, .nextcore-native *) { font-size: 14px; margin-block: 16px 20px; }
    body.nextcore-homepage .site-footer:where(.nextcore-native, .nextcore-native *) { padding-block: 20px 22px; }
}
