/*
Theme Name: Infocont
Description: Joomla Infocont design adapted for editable WordPress pages.
Version: 1.0.0
Requires PHP: 8.5
Text Domain: infocont
*/

*, *::before, *::after { box-sizing: border-box; }
#all { box-sizing: content-box; }
#menu li:first-child > a { border-radius: 8px 0 0 8px; border-left: 0; }
#menu li:last-child > a { border-radius: 0 8px 8px 0; border-right: 0; }
#menu li.current-menu-item > a,
#menu li.current-menu-ancestor > a { background-image: url(assets/images/menu_selected.png); text-shadow: none; }
#menu a { display: flex; align-items: center; justify-content: center; height: 47px; padding: 0 6px; }
#sub-menu-selected { height: 33px; }
#search-form input[type="search"] { width: 158px; border: 0; background: transparent; }
#search-form button { display: none; }
#search-zoom { cursor: pointer; }
#page-content img, #content img { max-width: 100%; height: auto; }
#page-content table { display: block; max-width: 100%; overflow-x: auto; }
#page-content { overflow-wrap: anywhere; }
#company img { max-width: 100%; height: auto; }
.infocont-breadcrumbs { margin-bottom: 18px; color: #f8aa13; font-size: 14px; }
.infocont-breadcrumbs a { color: #0e2442; }
.infocont-search-results { min-height: 300px; }
.infocont-search-results article { margin: 0 0 24px; }
.infocont-image-modal[hidden] { display: none; }
.infocont-image-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 48px 24px 24px; background: rgb(0 0 0 / 82%); }
.infocont-image-modal__image { display: block; max-width: min(96vw, 1440px); max-height: 92vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 8px 32px rgb(0 0 0 / 45%); }
.infocont-image-modal__close { position: absolute; top: 12px; right: 18px; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); color: #17212b; font: 32px/1 sans-serif; cursor: pointer; }
.infocont-image-modal__close:hover, .infocont-image-modal__close:focus-visible { background: #fff; outline: 3px solid #f7a515; outline-offset: 2px; }

@media (max-width: 1020px) {
  #all { width: auto; max-width: 943px; margin: 0 auto; padding: 0 20px; }
  #header, #content, #page-content, #description-top,
  #description-bottom, #image-slider, #footer { max-width: 100%; }
  #menu #mask { display: block; width: 100%; }
  #menu ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; height: auto; }
  #menu li { display: flex; min-width: 0; }
  #menu a { width: 100%; height: auto; min-height: 47px; padding: 8px 6px; background-size: auto 100%; line-height: 1.2; }
  #sub-menu { display: flex; flex-wrap: wrap; align-items: flex-end; width: 100%; height: auto; border-bottom: 1px solid #f7a515; }
  #sub-menu-line { display: none; }
  #page-content h1 { line-height: 1.15; }
  #image-slider { height: auto; }
  #image-slider .slide { width: 100%; height: auto; padding: 12px; overflow: hidden; }
  #slide-image { display: block; width: fit-content; max-width: 100%; margin: 0 auto; }
  #slide-image img { max-width: 100%; height: auto; }
  #slide-desc, #slide-desc-bottom { display: block; width: auto; max-width: 100%; }
  #slide-desc-top h1 { font-size: clamp(22px, 4vw, 30px); }
  #slide-screen { max-width: 100%; }
  #slide-desc-bottom-text { max-width: 100%; margin-left: 0; }
  #slide-desc-bottom-text p, #slide-desc-bottom-text div { max-width: 100%; }
  #demo-box { width: 100%; margin-left: 0; }
  #line-tentacles { width: 100%; overflow: hidden; }
  #line-tentacles #line { width: calc(100% - 65px); }
  #customers { margin-left: 0; }
  .article { display: flex; align-items: flex-start; gap: 10px; width: 100%; }
  .article .pdf-img { flex: 0 0 auto; }
  .article .article-desc { display: block; flex: 1; min-width: 0; margin-left: 0; }
  .article .article-name { display: block; overflow-wrap: anywhere; }
}

@media (max-width: 900px) {
  #menu ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #description-top, #description-bottom, #demo-box { display: block; }
  #description-top > *, #description-bottom > *, #demo-box > * { display: block; float: none !important; width: 100% !important; max-width: 100%; margin-left: 0 !important; }
  #about-us-box { width: 100%; height: auto; margin-left: 0; }
  #about-us-box #open-quotes { float: left; margin: 3px 8px 0 0; }
  #about-us-box .custom, #about-us-box .custom > div, #about-us-box .custom > div > div { display: block !important; width: auto !important; max-width: 100%; margin-left: 0 !important; }
  #about-us-name { clear: both; width: auto; max-width: 100%; margin: 20px 0 0; text-align: right; }
  #desc-right-col-bottom #tail { display: none; }
}

@media (max-width: 640px) {
  #all { padding: 0 12px; }
  #header #logo { display: block; text-align: center; }
  #search { float: none; display: block; margin: 10px auto; width: 195px; }
  #menu #mask { display: block; }
  #menu ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 60px; }
  #menu li { display: flex; min-width: 0; }
  #menu li > a { height: 100%; min-height: 0; padding: 6px; border: 0; border-right: 1px solid #cdcecf; border-bottom: 1px solid #cdcecf; border-radius: 0 !important; background-size: auto 100%; font-size: 13px; line-height: 1.2; }
  #menu li:nth-child(2n) > a { border-right: 0; }
  #menu li:nth-last-child(-n+2) > a { border-bottom: 0; }
  #sub-menu { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
  #sub-menu > div { flex: 0 0 auto; }
  #company img { display: block; float: none !important; margin: 0 0 8px !important; }
  #footer { overflow-wrap: anywhere; }
}
