:root { --emsoft-header-height: 120px; --emsoft-header-clearance: 0px; }
html { scroll-padding-top: calc(var(--emsoft-header-height) + var(--emsoft-header-clearance) + 20px); }
body { padding-top: var(--emsoft-header-height); }
body.admin-bar { --emsoft-header-clearance: 32px; }
[id] { scroll-margin-top: 0; }
#emsoft-main { outline: none; }
/* Existing templates already reserve space for the old fixed header. */
#emsoft-main + section:not(.emsoft-breadcrumb), #emsoft-main + main:not(.emsoft-search-results):not(.emsoft-breadcrumb-page) { padding-top: 48px; }
/* Header clearance belongs to body; breadcrumbs own the space before page content. */
.emsoft-breadcrumb { padding-block: 28px 32px; }
.emsoft-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: #061016; }
.emsoft-breadcrumb li { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.emsoft-breadcrumb a { color: #237cb4; text-decoration: underline; text-underline-offset: 3px; }
.emsoft-breadcrumb a:hover { color: #275f82; }
.emsoft-breadcrumb a:focus-visible { outline: 2px solid #237cb4; outline-offset: 4px; }
.emsoft-breadcrumb__separator { color: #64748b; }
.emsoft-breadcrumb [aria-current] { font-weight: 500; }
@media (max-width: 767px) { .emsoft-breadcrumb { padding-block: 20px 24px; } }
.emsoft-portfolio-detail__consultation #contact { scroll-margin-top: 0; }
.emsoft-shell { width: calc(100% - 96px); max-width: 1344px; margin-inline: auto; }
.emsoft-header { position: fixed; inset: var(--emsoft-header-clearance) 0 auto; z-index: 55; background: #ffffffcc; backdrop-filter: blur(12px); border-bottom: .4px solid #275f82; }
.emsoft-header .emsoft-shell { width: calc(100% - 120px); max-width: 1320px; }
.emsoft-header.is-scrolled { box-shadow: 0 2px 8px #06101612; }
.emsoft-header button, .emsoft-footer button { cursor: pointer; font: inherit; }
.emsoft-topbar { background: #0d202b; color: #fff; font-size: 12px; line-height: 15px; }
.emsoft-topbar__inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.emsoft-topbar__intro, .emsoft-topbar__contacts, .emsoft-hours, .emsoft-topbar a { display: flex; align-items: center; gap: 6px; }
.emsoft-topbar__intro, .emsoft-topbar__contacts { gap: 24px; }
.emsoft-hours { white-space: nowrap; }
.emsoft-header-usp { display: none; }
.emsoft-topbar a { color: inherit; white-space: nowrap; text-decoration: none; font-weight: 500; }
.emsoft-topbar a:hover { color: #fff; text-decoration: underline; }
.emsoft-topbar .emsoft-calculator { border-left: 1px solid #ffffff4d; padding-left: 24px; }
.emsoft-icon { flex: none; display: inline-block; max-width: none; }
.emsoft-header__main { position: relative; height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.emsoft-brand { display: inline-flex; flex: none; text-decoration: none; color: #061016; }
.emsoft-logo { display: block; width: 70px; height: 33px; object-fit: contain; }
.emsoft-navigation { margin-inline: auto; }
.emsoft-nav-list { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.emsoft-nav-item { position: relative; }
.emsoft-nav-item__row { display: flex; align-items: center; }
.emsoft-nav-item__row > a { padding-block: 12px; font-size: 16px; line-height: 24px; font-weight: 400; white-space: nowrap; color: #061016; text-decoration: none; }
.emsoft-nav-item a:hover, .emsoft-nav-item a[aria-current=page] { color: #237cb4; }
.emsoft-submenu-toggle { padding: 16px 8px; margin-right: -6px; border: 0; background: transparent; display: inline-flex; align-items: center; }
.emsoft-submenu-toggle[aria-expanded=true] img { transform: rotate(180deg); }
.emsoft-submenu { position: absolute; top: 100%; left: 0; right: auto; width: 240px; padding: 16px; border: 1px solid #c6e2f4; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px #06101614; max-height: calc(100dvh - var(--emsoft-header-height) - 32px); overflow-y: auto; }
.emsoft-nav-item--services { position: static; }
.emsoft-submenu--services { width: min(820px, calc(100vw - 96px)); display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 32px; left: auto; right: 0; }
.emsoft-nav-group:first-child { grid-row: span 4; }
.emsoft-nav-group > p { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: #275f82; margin: 0 0 7px; }
.emsoft-submenu ul { list-style: none; padding: 0; margin: 0; }
.emsoft-submenu a { display: block; font-size: 14px; line-height: 20px; padding: 7px 8px; margin-inline: -8px; border-radius: 4px; color: #061016; text-decoration: none; }
.emsoft-submenu a:hover { background: #ecf5fb; }
.emsoft-header__actions { display: flex; align-items: center; gap: 20px; }
.emsoft-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #419fd9; background: #419fd9; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; line-height: 20px; padding: 10px 24px; border-radius: 8px; text-align: center; min-height: 42px; }
.emsoft-button:hover { background: #287eaf; border-color: #287eaf; color: #fff; }
.emsoft-header__cta { width: 211px; min-height: 48px; flex: none; padding-inline: 12px; }
.emsoft-navigation__cta, .emsoft-menu-toggle, .emsoft-nav-item--calculator { display: none; }
.emsoft-search-toggle { display: grid; place-items: center; background: none; border: 0; padding: 12px; width: 44px; height: 44px; }
.emsoft-search-icon { display: block; width: 16px; height: 16px; border: 2px solid #275f82; border-radius: 50%; position: relative; }
.emsoft-search-icon::after { content: ''; position: absolute; width: 7px; height: 2px; background: #275f82; right: -5px; bottom: -3px; transform: rotate(45deg); }
.emsoft-header-search { background: #fff; border-top: 1px solid #c6e2f4; padding: 24px 0; position: absolute; top: 100%; left: 0; right: 0; box-shadow: 0 12px 30px #06101614; }
.emsoft-header-search .emsoft-shell { display: flex; align-items: flex-end; gap: 20px; }
.emsoft-search-form { flex: 1; max-width: 800px; }
.emsoft-search-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.emsoft-search-form__fields { display: flex; gap: 12px; }
.emsoft-search-form input { width: 100%; min-width: 0; border: 1px solid #419fd9; border-radius: 6px; background: #fff; color: #061016; padding: 12px 16px; font: inherit; }
.emsoft-search-close { background: none; border: 0; text-decoration: underline; padding: 12px; }
.emsoft-header [hidden] { display: none !important; }
.emsoft-header a:focus-visible, .emsoft-header button:focus-visible, .emsoft-footer a:focus-visible, .emsoft-footer button:focus-visible, .emsoft-search-results a:focus-visible, .emsoft-search-form input:focus-visible { outline: 2px solid #237cb4; outline-offset: 4px; }
.emsoft-skip-link { position: fixed; z-index: 100; left: 20px; top: -100px; padding: 12px; background: #fff; color: #061016; }
.emsoft-skip-link:focus { top: 12px; }
.emsoft-footer { background: #0d202b; color: #fff; padding: 60px 0 40px; margin-top: auto; }
.emsoft-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; }
.emsoft-footer .emsoft-brand { color: #ecf5fb; }
.emsoft-footer .emsoft-logo { width: 120px; height: 56px; }
.emsoft-footer__brand > p { font-size: 14px; line-height: 18px; max-width: 269px; margin-top: 12px; }
.emsoft-footer h2 { color: #419fd9; font-weight: 700; font-size: 14px; line-height: 18px; text-transform: uppercase; letter-spacing: .56px; margin: 0 0 16px; }
.emsoft-footer ul { list-style: none; margin: 0; padding: 0; }
.emsoft-footer nav li + li { margin-top: 12px; }
.emsoft-footer a { color: inherit; text-decoration: none; }
.emsoft-footer nav a { font-size: 16px; line-height: 19px; }
.emsoft-footer a:hover { color: #c6e2f4; text-decoration: underline; }
.emsoft-contact-link { display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.emsoft-footer__contact-list { display: grid; gap: 4px; }
.emsoft-footer .emsoft-contact-link .emsoft-icon, .emsoft-footer__address-line .emsoft-icon { width: 18px; height: 18px; object-fit: contain; }
.emsoft-footer__address-line { display: flex; align-items: flex-start; gap: 12px; }
.emsoft-footer__address-line .emsoft-icon { margin-top: 2px; }

.emsoft-footer__buttons { display: grid; gap: 12px; margin-top: 24px; }
.emsoft-footer .emsoft-button { color: #fff; }
.emsoft-footer address { font-size: 14px; line-height: 22px; font-style: normal; color: #ffffffcc; }
.emsoft-footer address strong { color: #fff; }
.emsoft-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; margin-top: 32px; border-top: .4px solid #ffffff80; color: #a7a7a7; font-size: 14px; line-height: 20px; }
.emsoft-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 22px; }
.emsoft-search-results { padding-block: 60px 100px; min-height: 60vh; }
.emsoft-search-results h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; font-weight: 700; margin: 12px 0 32px; overflow-wrap: anywhere; }
.emsoft-eyebrow { font-size: 12px; line-height: 18px; letter-spacing: .5px; color: #275f82; text-transform: uppercase; font-weight: 600; }
.emsoft-search-count { margin-top: 40px; color: #5d5d5d; font-size: 14px; }
.emsoft-search-list article { padding-block: 28px; border-bottom: 1px solid #c6e2f4; }
.emsoft-search-list h2 { font-size: 24px; font-weight: 600; margin-block: 8px; }
.emsoft-search-list article > p:not(.emsoft-eyebrow) { max-width: 800px; margin-block: 10px; color: #5d5d5d; }
.emsoft-result-link { color: #237cb4; display: inline-flex; gap: 6px; margin-top: 8px; }
.emsoft-search-empty { margin-top: 40px; padding: 32px; border: 1px solid #c6e2f4; border-radius: 12px; background: #ecf5fb; }
.emsoft-search-empty h2 { font-size: 24px; font-weight: 600; }
.emsoft-search-empty p { margin-block: 12px 24px; }
.emsoft-search-results .nav-links { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 32px; }
.emsoft-search-results .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid #c6e2f4; border-radius: 6px; }
.emsoft-search-results .page-numbers.current { background: #ecf5fb; }
@media (max-width: 1250px) { .emsoft-footer__grid { gap: 28px; } }
@media (max-width: 1279px) {
  .emsoft-header .emsoft-shell { width: calc(100% - 40px); }
  .emsoft-header-usp { display: none; }
  .emsoft-header__main { position: static; height: 80px; }
  .emsoft-header__actions { margin-left: auto; gap: 12px; }
  .emsoft-menu-toggle { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; border: 0; border-radius: 4px; width: 40px; height: 40px; padding: 8px; background: #fff; }
  .emsoft-menu-toggle span { width: 22px; height: 2px; background: #419fd9; }
  .emsoft-menu-toggle span:nth-child(2) { width: 16px; }
  .emsoft-navigation { position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 20px 24px; background: #fff; border-bottom: 1px solid #c6e2f4; max-height: calc(100dvh - var(--emsoft-header-height) - var(--emsoft-header-clearance)); overflow-y: auto; overscroll-behavior: contain; }
  .emsoft-js .emsoft-navigation:not(.is-open) { display: none; }
  .emsoft-nav-list { display: block; }
  .emsoft-nav-item__row { justify-content: space-between; }
  .emsoft-nav-item__row > a { flex: 1; font-size: 18px; font-weight: 500; padding-block: 14px; }
  .emsoft-submenu-toggle { padding: 20px; margin: 0; }
  .emsoft-submenu, .emsoft-submenu--services { position: static; width: auto; max-height: none; box-shadow: none; border-radius: 8px; margin-block: 0 10px; background: #f7fbfe; }
  .emsoft-submenu--services { display: grid; grid-template-columns: 1fr 1fr; }
  .emsoft-navigation-open { overflow: hidden; }
}
@media (max-width: 1099px) {
  .emsoft-shell { width: calc(100% - 48px); }
  .emsoft-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .emsoft-footer__buttons { max-width: 280px; }
}
@media (max-width: 767px) {
  body.admin-bar { --emsoft-header-clearance: 46px; }
  .emsoft-shell { width: calc(100% - 40px); }
  .emsoft-topbar__inner { flex-wrap: wrap; justify-content: center; gap: 6px; padding-block: 8px; }
  .emsoft-topbar__intro { justify-content: center; width: 100%; }
  .emsoft-topbar__contacts { justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
  .emsoft-topbar .emsoft-calculator { display: none; }
  .emsoft-header__main { height: 80px; gap: 12px; }
  .emsoft-header__cta { display: none; }
  .emsoft-header .emsoft-logo { width: 50px; height: auto; }
  .emsoft-footer .emsoft-logo { width: 80px; height: auto; }
  .emsoft-nav-item--calculator { display: block; }
  .emsoft-navigation__cta { display: flex; margin-block: 16px 4px; }
  .emsoft-nav-list::after { content: ''; display: block; clear: both; }
  .emsoft-navigation { padding: 12px 20px 24px; }
  .emsoft-submenu--services { grid-template-columns: 1fr; gap: 20px; }
  .emsoft-nav-group:first-child { grid-row: auto; }
  .emsoft-header-search .emsoft-shell { display: block; }
  .emsoft-search-form__fields { gap: 8px; }
  .emsoft-search-form input { padding: 10px; font-size: 16px; }
  .emsoft-search-form button { padding-inline: 14px; }
  .emsoft-search-close { margin-top: 8px; }
  .emsoft-footer { padding-block: 40px 28px; }
  .emsoft-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .emsoft-footer__brand > p { max-width: 320px; }
  .emsoft-footer__buttons { max-width: none; }
  .emsoft-footer__bottom { flex-direction: column; }
  .emsoft-search-results { padding-block: 40px 64px; }
  .emsoft-search-empty { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.emsoft-navigation-open #chat-btn, .emsoft-navigation-open #chat-alert, .emsoft-navigation-open jdiv { visibility: hidden !important; }

.emsoft-navigation-open jdiv { display: none !important; }

/* Hide carousel tracks without changing native scrolling or page scrollbars. */
.portfolio-clients__list::-webkit-scrollbar,
.emsoft-home .home-work__grid::-webkit-scrollbar,
.emsoft-home .home-reviews__list::-webkit-scrollbar,
.emsoft-portfolio-detail__gallery-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
@media (max-width: 767px) { .emsoft-footer .emsoft-contact-link { min-height: 44px; } }

/* Keep both desktop dropdowns flush with the navigation bar and inside their hover areas. */
@media (min-width: 1280px) {
  .emsoft-nav-item--dropdown { padding-block: 20px; margin-block: -20px; }
}
.emsoft-footer__social { display: flex; flex-wrap: wrap; gap: 4px 20px; }
