/*
 * Header/menu technical runtime layer.
 *
 * Header template 31 owns the Bricks-native structure, logo, links, CTA,
 * menu panels, base surfaces, typography, spacing, and global classes.
 * This stylesheet only owns frontend chrome behavior that Bricks 2.3.4
 * cannot express cleanly without making the header hard to edit: fixed
 * overlay placement, ambient state variables, backdrop filters, pseudo
 * chevrons, JS-assisted mobile pager states, and exact breakpoint guards.
 */

body.bricks-is-frontend {
  --lc-header-tone-duration: var(--lc-motion-standard, 280ms);
  --lc-header-tone-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lc-header-bar-surface: color-mix(in srgb, var(--lc-color-dark) 82%, transparent);
  --lc-header-bar-blur: 10px;
  --lc-header-text: var(--lc-color-white);
  --lc-header-muted: color-mix(in srgb, var(--lc-color-white) 70%, transparent);
  --lc-header-border: color-mix(in srgb, var(--lc-color-white) 16%, transparent);
  --lc-header-menu-surface: var(--lc-header-bar-surface);
  --lc-header-mobile-surface: var(--lc-header-menu-surface);
  --lc-header-menu-ink: color-mix(in srgb, var(--lc-color-white) 94%, transparent);
  --lc-header-menu-muted: color-mix(in srgb, var(--lc-color-white) 58%, transparent);
  --lc-header-menu-hover: rgba(70, 71, 86, 0.78);
  --lc-header-menu-icon: rgba(255, 255, 255, 0.88);
  --lc-header-menu-icon-bg: rgba(255, 255, 255, 0.1);
  --lc-header-menu-blur: 34px;
}

body.bricks-is-frontend.admin-bar {
  --wp-admin--admin-bar--height: 32px;
}

@media (max-width: 782px) {
  body.bricks-is-frontend.admin-bar {
    --wp-admin--admin-bar--height: 46px;
  }
}

body.bricks-is-frontend > #brx-header .lc-global-header-root {
  height: 0;
  min-height: 0;
  max-height: 0;
  overflow: visible;
}

body.bricks-is-frontend .lc-services-mega[hidden],
body.bricks-is-frontend .lc-mobile-panel[hidden] {
  display: none;
}

body.bricks-is-frontend > #brx-header .lc-notice-bar {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  right: 0;
  left: 0;
  z-index: 999999;
}

body.bricks-is-frontend > #brx-header .lc-site-header__inner {
  position: fixed;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 43px);
  right: max(27px, calc((100vw - 1181px) / 2));
  left: max(27px, calc((100vw - 1181px) / 2));
  width: min(calc(100% - 259px), 1181px);
  background: var(--lc-header-bar-surface, rgba(24, 23, 33, 0.82));
  backdrop-filter: blur(var(--lc-header-bar-blur, 10px)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--lc-header-bar-blur, 10px)) saturate(145%);
}

body.bricks-is-frontend .lc-site-logo {
  justify-self: start;
}

body.bricks-is-frontend .lc-desktop-nav {
  justify-self: center;
}

body.bricks-is-frontend .lc-site-header__actions {
  justify-self: end;
}

body.bricks-is-frontend .lc-mega-toggle {
  gap: 0.38rem;
}

body.bricks-is-frontend .lc-mega-toggle::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform var(--lc-header-tone-duration) var(--lc-header-tone-ease);
}

body.bricks-is-frontend .lc-mega-toggle[aria-expanded="true"]::after {
  transform: translateY(0.08rem) rotate(225deg);
}

body.bricks-is-frontend[data-lc-active-header-contrast="dark"] .lc-site-logo__image {
  filter: invert(1);
}

body.bricks-is-frontend[data-lc-mobile-menu-open] {
  overflow: hidden;
}

body.bricks-is-frontend > #brx-header .lc-services-mega {
  transform: translateX(-50%);
  transform-origin: top center;
  overflow: hidden;
  background: var(--lc-header-menu-surface, var(--lc-header-bar-surface, rgba(24, 23, 33, 0.82)));
  background-clip: padding-box;
  backdrop-filter: blur(var(--lc-header-menu-blur, var(--lc-header-bar-blur, 10px))) saturate(160%);
  -webkit-backdrop-filter: blur(var(--lc-header-menu-blur, var(--lc-header-bar-blur, 10px))) saturate(160%);
  will-change: transform, opacity;
  animation: lc-mega-enter 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.bricks-is-frontend > #brx-header .lc-services-mega[data-lc-mega-portal="true"] {
  position: fixed;
  top: var(--lc-services-mega-top, calc(var(--wp-admin--admin-bar--height, 0px) + 143px));
  left: var(--lc-services-mega-left, 50%);
}

body.bricks-is-frontend .lc-services-mega__categories,
body.bricks-is-frontend .lc-services-mega__children {
  list-style: none;
}

body.bricks-is-frontend svg.lc-services-mega__icon {
  stroke-width: 1.9;
}

body.bricks-is-frontend .lc-services-mega__category-desc {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.bricks-is-frontend .lc-services-mega__category,
body.bricks-is-frontend .lc-services-mega__child-item {
  box-sizing: border-box;
  border: 1px solid transparent;
  justify-self: stretch;
}

body.bricks-is-frontend .lc-services-mega__category:is(:hover, :focus-within),
body.bricks-is-frontend .lc-services-mega__category.is-active,
body.bricks-is-frontend .lc-services-mega__child-item:is(:hover, :focus-within),
body.bricks-is-frontend .lc-services-mega__child-item--all {
  background: var(--lc-header-menu-hover);
  border-color: color-mix(in srgb, var(--lc-header-menu-ink) 9%, transparent);
}

body.bricks-is-frontend .lc-services-mega__category-title:focus-visible,
body.bricks-is-frontend .lc-services-mega__child-link:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--lc-focus);
  outline-offset: 4px;
}

body.bricks-is-frontend .lc-mobile-panel {
  background: var(--lc-header-mobile-surface, var(--lc-header-menu-surface));
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  animation: lc-mobile-menu-enter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.bricks-is-frontend .lc-mobile-nav__summary {
  list-style: none;
}

body.bricks-is-frontend .lc-mobile-nav__summary::-webkit-details-marker {
  display: none;
}

body.bricks-is-frontend .lc-mobile-nav__summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(-45deg);
}

body.bricks-is-frontend .lc-mobile-nav__details[open] .lc-mobile-nav__summary::after {
  transform: rotate(45deg);
}

body.bricks-is-frontend .lc-mobile-nav__details:not([open]) > :not(summary) {
  display: none !important;
}

body.bricks-is-frontend .lc-mobile-nav__details[open] > .lc-mobile-nav__summary {
  display: none !important;
}

body.bricks-is-frontend .lc-mobile-nav__details[open] > .lc-mobile-nav__nested {
  display: none !important;
}

body.bricks-is-frontend .lc-mobile-nav:has(.lc-mobile-nav__details[open]) > a,
body.bricks-is-frontend .lc-mobile-nav:has(.lc-mobile-nav__details[open]) > .lc-button {
  display: none !important;
}

body.bricks-is-frontend .lc-mobile-nav__nested {
  list-style: none;
}

body.bricks-is-frontend .lc-mobile-services-pager {
  margin-top: 1rem;
}

body.bricks-is-frontend .lc-mobile-services-pager__page {
  display: none;
}

body.bricks-is-frontend .lc-mobile-services-pager__page.is-active {
  display: grid;
  gap: 1.35rem;
}

body.bricks-is-frontend .lc-mobile-services-pager__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  font-family: var(--lc-font-heading);
  font-size: 1rem;
}

body.bricks-is-frontend .lc-mobile-services-pager__header strong {
  font-weight: 800;
}

body.bricks-is-frontend .lc-mobile-services-pager__back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: transparent;
  color: var(--lc-header-menu-muted);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
}

body.bricks-is-frontend .lc-mobile-services-pager__all,
body.bricks-is-frontend .lc-mobile-services-pager__category-button,
body.bricks-is-frontend .lc-mobile-services-pager__list--details a {
  min-height: 56px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--lc-header-menu-ink);
  font-family: var(--lc-font-heading);
  text-align: left;
}

body.bricks-is-frontend .lc-mobile-services-pager__all {
  padding: 0.75rem 1rem;
  background: var(--lc-header-menu-hover);
}

body.bricks-is-frontend .lc-mobile-services-pager__list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.bricks-is-frontend .lc-mobile-services-pager__category-button {
  appearance: none;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 14px;
  gap: 0.8rem;
  border-radius: 12px;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.55rem 0.15rem;
}

body.bricks-is-frontend .lc-mobile-services-pager__category-button strong {
  display: block;
  font-weight: 800;
}

body.bricks-is-frontend .lc-mobile-services-pager__category-button .lc-services-mega__icon {
  border-radius: 10px;
}

body.bricks-is-frontend .lc-mobile-services-pager__category-button .lc-services-mega__icon,
body.bricks-is-frontend .lc-mobile-services-pager__category-button svg.lc-services-mega__icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 10.5px;
}

body.bricks-is-frontend .lc-mobile-services-pager__list--details {
  gap: 0.65rem;
}

body.bricks-is-frontend .lc-mobile-services-pager__list--details a {
  min-height: 52px;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

body.bricks-is-frontend .lc-mobile-nav__arrow {
  flex: 0 0 auto;
  font-family: var(--lc-font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

body.bricks-is-frontend[data-lc-active-header-contrast="dark"] {
  --lc-header-bar-surface: color-mix(in srgb, var(--lc-color-surface) 74%, transparent);
  --lc-header-bar-blur: 6px;
  --lc-header-text: var(--lc-color-ink);
  --lc-header-muted: var(--lc-color-muted);
  --lc-header-border: color-mix(in srgb, var(--lc-color-ink) 12%, transparent);
  --lc-header-menu-surface: var(--lc-header-bar-surface);
  --lc-header-mobile-surface:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 255, 0.82)),
    rgba(255, 255, 255, 0.78);
  --lc-header-menu-ink: var(--lc-color-ink);
  --lc-header-menu-muted: color-mix(in srgb, var(--lc-color-ink) 58%, transparent);
  --lc-header-menu-hover: color-mix(in srgb, var(--lc-color-ink) 8%, transparent);
  --lc-header-menu-icon: color-mix(in srgb, var(--lc-color-ink) 72%, transparent);
  --lc-header-menu-icon-bg: color-mix(in srgb, var(--lc-color-ink) 8%, transparent);
  --lc-header-menu-blur: 26px;
}

body.bricks-is-frontend[data-lc-mobile-menu-open],
body.bricks-is-frontend.home[data-lc-mobile-menu-open] {
  --lc-header-mobile-surface: rgba(16, 16, 25, 0.94);
  --lc-header-menu-surface: rgba(16, 16, 25, 0.94);
  --lc-header-border: rgba(255, 255, 255, 0.16);
  --lc-header-text: var(--lc-color-white);
  --lc-header-menu-ink: color-mix(in srgb, var(--lc-color-white) 94%, transparent);
  --lc-header-menu-muted: color-mix(in srgb, var(--lc-color-white) 64%, transparent);
  --lc-header-menu-hover: rgba(255, 255, 255, 0.09);
  --lc-header-menu-icon: rgba(255, 255, 255, 0.88);
  --lc-header-menu-icon-bg: rgba(255, 255, 255, 0.12);
}

@keyframes lc-mega-enter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes lc-mobile-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1100px) {
  body.bricks-is-frontend > #brx-header .lc-site-header__inner {
    width: min(100%, 1178px);
    min-height: 80px;
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 1.05rem 1.2rem !important;
    border-radius: 0 0 24px 24px !important;
  }

  body.bricks-is-frontend.home[data-lc-active-header-contrast="light"] > #brx-header .lc-site-header__inner {
    --lc-header-bar-surface: transparent;
    --lc-header-text: var(--lc-color-white);
    --lc-header-border: color-mix(in srgb, var(--lc-color-white) 16%, transparent);
    box-shadow: none;
  }

  body.bricks-is-frontend .lc-desktop-nav,
  body.bricks-is-frontend .lc-header-cta {
    display: none !important;
  }

  body.bricks-is-frontend .lc-mobile-toggle {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-width: 2.75rem;
    padding-inline: 0;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 12.6px;
    font-size: 0 !important;
    color: var(--lc-header-text);
  }

  body.bricks-is-frontend .lc-mobile-toggle::before {
    content: "";
    width: 1.15rem;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0.4rem 0 currentColor;
  }

  body.bricks-is-frontend .lc-mobile-toggle::after {
    content: "";
    position: absolute;
    width: 1.15rem;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
  }

  body.bricks-is-frontend[data-lc-mobile-menu-open] .lc-mobile-toggle {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.14);
    color: var(--lc-header-menu-ink);
  }

  body.bricks-is-frontend[data-lc-mobile-menu-open] .lc-mobile-toggle::before {
    transform: rotate(45deg);
    box-shadow: none;
  }

  body.bricks-is-frontend[data-lc-mobile-menu-open] .lc-mobile-toggle::after {
    opacity: 1;
    transform: rotate(-45deg);
  }
}

@media (max-width: 720px) {
  body.bricks-is-frontend .lc-mobile-panel {
    border-radius: 20px;
  }

  body.bricks-is-frontend .lc-mobile-nav a,
  body.bricks-is-frontend .lc-mobile-nav summary {
    min-height: 54px;
    padding-inline: 16px;
  }
}

@media (max-width: 920px) {
  body.bricks-is-frontend.single-service[data-lc-active-header-contrast="light"],
  body.bricks-is-frontend.single-service[data-lc-active-header-contrast="light"] > #brx-header .lc-site-header__inner {
    --lc-header-text: var(--lc-color-ink);
    --lc-header-muted: var(--lc-color-muted);
    --lc-header-border: color-mix(in srgb, var(--lc-color-ink) 12%, transparent);
    --lc-header-surface: color-mix(in srgb, var(--lc-color-surface) 86%, transparent);
    --lc-header-bar-surface:
      linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 255, 0.82)),
      rgba(255, 255, 255, 0.78);
  }

  body.bricks-is-frontend.single-service[data-lc-active-header-contrast="light"] .lc-site-logo__image {
    filter: invert(1);
  }

  body.bricks-is-frontend > #brx-header .lc-site-header__inner {
    left: 19px;
    right: auto;
    width: calc(100vw - 38px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bricks-is-frontend .lc-services-mega,
  body.bricks-is-frontend .lc-mobile-panel {
    animation: none;
  }
}

@media (max-width: 520px) {
  body.bricks-is-frontend .lc-mobile-panel {
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 130.6px);
    right: 14.4px;
    left: 14.4px;
    padding: 16.2px;
  }

  body.bricks-is-frontend .lc-mobile-panel .lc-mobile-nav {
    padding: 0;
  }

  body.bricks-is-frontend .lc-mobile-nav a,
  body.bricks-is-frontend .lc-mobile-nav summary {
    margin-top: 0;
    min-height: 48.6px !important;
    padding: 13.5px 14.4px;
    font-size: 12.6px !important;
    font-weight: 500 !important;
    line-height: 17px;
  }

  body.bricks-is-frontend .lc-mobile-nav > .lc-button {
    min-height: 50.4px !important;
    margin-top: 14.4px !important;
    padding: 14.4px 28.8px !important;
    font-size: 12.6px;
    font-weight: 600 !important;
    line-height: 12.6px !important;
  }

  body.bricks-is-frontend .lc-mobile-nav > a:not(.lc-button) {
    margin-top: 7.2px !important;
  }

  body.bricks-is-frontend > #brx-header .lc-notice-bar {
    font-size: 12.4px !important;
    line-height: 1.1 !important;
  }

  body.bricks-is-frontend > #brx-header .lc-site-header__inner {
    --lc-header-bar-surface: color-mix(in srgb, var(--lc-color-surface) 86%, transparent);
    --lc-header-text: var(--lc-color-ink);
    --lc-header-border: color-mix(in srgb, var(--lc-color-ink) 12%, transparent);
    position: fixed;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 36.6px);
    left: 14.4px !important;
    right: auto;
    width: calc(100vw - 28.8px) !important;
    margin-inline: auto;
    z-index: 60;
    min-height: 81px;
    padding: calc(1.15625rem + 0.5px) 0.7875rem calc(1.15625rem - 0.5px) !important;
    border-radius: 0 0 21.6px 21.6px !important;
  }

  body.bricks-is-frontend[data-lc-mobile-menu-open] > #brx-header .lc-site-header__inner {
    --lc-header-bar-surface: rgba(24, 23, 33, 0.84);
    --lc-header-text: var(--lc-color-white);
    --lc-header-border: rgba(255, 255, 255, 0.16);
  }

  body.bricks-is-frontend.home[data-lc-active-header-contrast="dark"] > #brx-header .lc-site-header__inner {
    box-shadow: none;
  }

  body.bricks-is-frontend[data-lc-active-header-contrast="light"] .lc-site-logo__image {
    filter: invert(1);
  }

  body.bricks-is-frontend.home[data-lc-active-header-contrast="light"] .lc-site-logo__image {
    filter: none;
  }

  body.bricks-is-frontend[data-lc-mobile-menu-open] .lc-site-logo__image {
    filter: none;
  }
}
