/* WordPress integration. Template copyright Toolbbscom. */
.home #main { --space-section: clamp(24px, 2vw, 32px); }
.home #main > .project-tools { padding-block: 24px 32px; }
@media (max-width: 767px) {
  .home #main { --space-section: 24px; }
  .home #main > .project-tools { padding-block: 20px 24px; }
}
.toolbbscom-theme .brand-logo{display:block;width:auto;max-width:190px;height:38px;object-fit:contain}
.wordpress-content{padding-block:130px 80px;min-height:65vh}.wordpress-content article{margin-bottom:48px}.wordpress-content h1{font-size:clamp(32px,4vw,52px);margin-bottom:28px}.wordpress-content h2{margin-bottom:18px}.wordpress-content p{margin-block:18px}.wordpress-content a:not(.button){color:var(--color-accent)}
html:has(.admin-bar) { --adminbar-offset: 32px; }
.site-header { top: var(--adminbar-offset, 0px); }
.header-inner { gap: 16px; }
.desktop-nav { gap: 20px; flex-shrink: 0; }
.brand { flex-shrink: 0; }
.toolbbscom-theme { overflow-wrap: anywhere; }
.toolbbscom-theme .hero h1 span { white-space: normal; }
.toolbbscom-theme .button { white-space: normal; }
.toolbbscom-theme .footer-main > * { min-width: 0; }
.toolbbscom-theme .footer-links a { max-width: 100%; }
@media (min-width: 1200px) and (max-width: 1399px) {
  .desktop-nav { gap: 18px; }
  .header-actions > .button { display: none; }
}
@media (max-width: 782px) { html:has(.admin-bar) { --adminbar-offset: 46px; } }
@media (max-width: 600px) { html:has(.admin-bar) { --adminbar-offset: 0px; } }
@media (max-width: 767px) { .toolbbscom-theme .brand-logo { max-width: 150px; height: 32px; } }
.nav-item-with-submenu { display: flex; align-items: center; }
.desktop-nav > .nav-item:last-child > .company-menu { left: auto; right: 0; }
.nav-submenu-toggle .icon { width: 14px; height: 14px; transition: transform var(--motion-fast); }
.nav-submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-submenu-toggle:hover, .nav-item-with-submenu:has(.nav-submenu-toggle[aria-expanded="true"]) > .nav-link { color: var(--color-accent); }
.nav-item-with-submenu:has(.nav-submenu-toggle[aria-expanded="true"]) > .nav-link::after { content: ''; position: absolute; bottom: 18px; left: 0; width: 20px; height: 2px; background: currentColor; }

/* One sticky header owns both the contact strip and main navigation. */
:root { --topbar-height: 44px; --sticky-header-height: calc(var(--header-height) + var(--topbar-height) + 2px); }
html { scroll-padding-top: calc(var(--sticky-header-height) + var(--adminbar-offset, 0px) + 20px); }
.site-topbar { background: #040d1d; border-bottom: 1px solid #ffffff18; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--topbar-height); }
.topbar-contacts, .topbar-utilities, .topbar-social-list { display: flex; align-items: center; min-width: 0; }
.topbar-contacts { gap: 24px; }
.topbar-contact-link { display: inline-flex; align-items: center; gap: 9px; min-width: 44px; min-height: 44px; font-size: 14px; }
.topbar-contact-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-contact-link .icon { width: 16px; height: 16px; color: var(--color-accent); }
.topbar-contact-link:hover { color: var(--color-accent); }
.topbar-utilities { flex-shrink: 0; gap: 20px; }
.topbar-social-list { gap: 4px; }
.topbar-social-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; color: var(--color-body); background: transparent; }
.topbar-social-link .icon { width: 18px; height: 18px; }
.topbar-social-link:disabled { cursor: default; opacity: .65; }
.topbar-social-link:not(:disabled):hover { color: white; background: var(--color-surface-deep); }
.site-topbar .header-language { display: inline-flex; gap: 6px; min-height: 44px; padding-left: 16px; border-left: 1px solid var(--color-line); }
.site-topbar .language-switcher { position: relative; display: block; z-index: 6; }
.language-switcher > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; cursor: pointer; list-style: none; font-size: 14px; }
.language-switcher > summary::-webkit-details-marker { display: none; }
.language-switcher img { width: 20px; height: 14px; flex-shrink: 0; object-fit: contain; }
.language-switcher > summary > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.language-switcher > summary .icon { width: 14px; height: 14px; }
.language-switcher[open] > summary > .icon:last-child { transform: rotate(180deg); }
.language-switcher .language-list { position: absolute; top: calc(100% + 6px); right: 0; width: 224px; max-width: calc(100vw - 40px); max-height: min(400px, 60dvh); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; border: 1px solid #ccd8e9; border-radius: 8px; color: #0b1b35; background: #fff; box-shadow: 0 12px 32px #02081733; }
.language-list a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 12px; border-radius: 4px; font-size: 14px; }
.language-list a:hover, .language-list a[aria-current] { color: #1d55cf; background: #edf3ff; }
.language-list [data-language-name] { flex: 0 1 auto; }
.language-list .icon { width: 16px; height: 16px; margin-inline-start: auto; flex-shrink: 0; }
.language-switcher summary:focus-visible, .language-list a:focus-visible { outline: 2px solid #76a8ff; outline-offset: 2px; }
.mega-menu { max-height: calc(100dvh - var(--sticky-header-height) - var(--adminbar-offset, 0px) - 16px); }
.mobile-nav { max-height: calc(100dvh - var(--sticky-header-height) - var(--adminbar-offset, 0px)); }

/* The current page remains visible through the search overlay. */
.toolbbscom-theme .search-dialog { width: min(760px, calc(100% - 40px)); padding: 40px; border-color: #9bb4d761; background: #07152edb; color: #f3f7ff; backdrop-filter: blur(16px); }
.toolbbscom-theme .search-dialog::backdrop { background: #02081780; }
.toolbbscom-theme .search-dialog .dialog-close { background: transparent; }
.toolbbscom-theme .search-dialog h2 { font-size: clamp(26px, 3vw, 34px); }
.search-overlay-form { margin-top: 28px; }
.search-overlay-form > label { display: block; font-size: 14px; margin-bottom: 10px; color: #d3e2f8; }
.search-overlay-field { display: flex; gap: 10px; }
.search-overlay-field input { flex: 1; min-width: 0; background: #ffffff0f; border-color: #8ba3c6; color: #fff; }
.search-overlay-field input::placeholder { color: #b7c9e3; }
.search-overlay-status { margin-top: 18px; font-size: 14px; color: #d3e2f8; }
.search-overlay-status[role="alert"] { color: #ffd1cb; }
.search-overlay-results { display: grid; gap: 0; max-height: 45dvh; overflow-y: auto; margin-top: 12px; }
.search-overlay-result { display: block; padding: 16px 4px; border-bottom: 1px solid #8ba3c64d; }
.search-overlay-result:hover { color: #b6d6ff; }
.search-overlay-result strong { display: block; font-size: 18px; line-height: 1.5; }
.search-overlay-result span { display: block; margin-top: 6px; color: #c7d8ef; font-size: 14px; line-height: 1.7; }
.search-overlay-shortcuts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
.search-overlay-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; color: #b6d6ff; font-size: 14px; }
@media (max-width: 600px) {
  .toolbbscom-theme .search-dialog { width: calc(100% - 28px); padding: 36px 22px 24px; }
  .search-overlay-field .button { padding-inline: 14px; }
}

/* The original light form tokens remain intact inside the poster panel. */
.enquiry-poster { position: relative; isolation: isolate; background: #061126; }
.enquiry-background { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.enquiry-background img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.enquiry-background::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #040d1de8, #06112685 58%, #06112655); }
.enquiry-poster .enquiry-copy { color: #f3f7ff; align-self: center; }
.enquiry-poster .enquiry-copy > p, .enquiry-poster .enquiry-tip { color: #d3e2f8; }
.enquiry-poster .enquiry-tip .icon { color: #8bbcff; }
.enquiry-poster .enquiry-copy .enquiry-note { background: #0d203ef2; color: #c6d9f3; border-color: #8bbcff; }
.enquiry-poster .enquiry-form { padding: 30px; border: 1px solid var(--color-line); border-radius: 14px; background: #fff; box-shadow: 0 16px 48px #02081730; }

.process-symbol { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.process-symbol > .icon { width: 52px; height: 52px; padding: 13px; border-radius: 14px; background: var(--color-accent-soft); color: var(--color-accent); }
.process-symbol .process-number { font-size: 26px; letter-spacing: -.04em; }

/* Homepage products and cases retain their content grid over decorative posters. */
.products-section .section-heading, .projects-header { max-width: 760px; margin-inline: auto; text-align: center; }
.products-section .section-heading p { margin-inline: auto; }
.projects-section .project-body { display: flex; flex-direction: column; flex: 1; }
.display-poster { position: relative; isolation: isolate; background: #061126; }
.display-poster > .section-background { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.display-poster > .section-background img { width: 100%; height: 100%; object-fit: cover; }
.display-poster > .section-background::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #040d1dbd, #061126c2 48%, #061126f5); }
.display-poster .section-heading h2, .display-poster .projects-header h2 { color: #f3f7ff; }
.display-poster .section-heading p, .display-poster .projects-introduction { color: #d3e2f8; }
.display-poster .section-kicker { color: #9ecbff; }
.display-poster .product-toolbar { border-color: #637791; }
.display-poster .filter-button { color: #d3e2f8; }
.display-poster .filter-button:hover, .display-poster .filter-button[aria-pressed="true"] { color: #fff; border-color: #9ecbff; }
.display-poster .product-card, .display-poster .project-card { background: var(--color-paper); }
.display-poster .project-card { border: 1px solid var(--color-line); border-radius: 8px; overflow: hidden; }
.display-poster .project-body { padding: 6px 20px 12px; }
.display-poster .project-image:focus-visible { outline-offset: -5px; }
.display-poster .section-end > .text-link { color: #f3f7ff; }
.display-poster .carousel-dot::before { background: #9eafca; }
.display-poster .carousel-dot[aria-pressed="true"]::before, .display-poster .carousel-dot:hover::before { background: #b6d6ff; }
.display-poster .filter-button:focus-visible, .display-poster .carousel-dot:focus-visible, .display-poster .section-end > a:focus-visible { outline-color: #9ecbff; }
.display-poster .catalogue-empty { background: var(--color-paper); }

@media (max-width: 767px) {
  :root { --topbar-height: 88px; }
  .topbar-inner { flex-direction: column; gap: 0; align-items: stretch; }
  .topbar-contacts { gap: 16px; }
  .topbar-contact-link { flex: 1 1 0; min-width: 0; }
  .topbar-inner { width: 100%; padding-inline: 16px; }
  .topbar-social-list { gap: 0; flex-shrink: 0; }
  .topbar-utilities { justify-content: space-between; gap: 4px; }
  .site-topbar .header-language { padding-left: 8px; }
  .language-switcher > summary { gap: 4px; }
  .language-switcher > summary > span { max-width: clamp(52px, calc(100vw - 268px), 140px); }
  .language-switcher > summary .icon { width: 12px; height: 12px; }
  .enquiry-background img { object-position: 30% center; }
  .enquiry-background::after { background: #040d1dc9; }
  .enquiry-poster .enquiry-form { padding: 22px 18px; }
  .display-poster .section-background { height: 460px; max-height: 100%; bottom: auto; }
  .display-poster .section-background::after { background: linear-gradient(180deg, #040d1dc9, #061126ad 45%, #061126); }
  .products-section .section-background img { object-position: 20% center; }
  .projects-section .section-background img { object-position: 80% center; }
}

/* Shared product cards also appear on the homepage and related-content pages. */
.product-photo{display:block}.product-body h3{font-size:24px;line-height:1.35;margin-bottom:14px}
@media(max-width:1199px){.product-body h3{font-size:23px}}
