/*
 * Halcyon Site Core / Site UI
 *
 * A bounded replacement for the conflicting mobile header/menu presentation.
 * These selectors intentionally affect only small viewports.
 */
@media (max-width: 999px) {
  /*
   * The frozen legacy technical-fixes plugin forces the desktop navigation
   * bar back to display:block on small screens. Keep the original menu in
   * the DOM as the source for Site Core's clone, but never let that bar be
   * rendered alongside the replacement mobile panel.
   */
  html body .realfactory-navigation-bar-wrap,
  html body .realfactory-navigation-bar-wrap .realfactory-navigation,
  html body .realfactory-navigation-bar-wrap .realfactory-main-menu {
    display: none !important;
  }

  .realfactory-header-wrap,
  .realfactory-navigation-bar-wrap {
    display: none !important;
  }

  .realfactory-mobile-header-wrap {
    background: #ffffff !important;
    box-shadow: 0 2px 16px rgba(16, 24, 32, 0.12);
    display: block !important;
    position: sticky !important;
    top: 0;
    z-index: 10050 !important;
  }

  body.admin-bar .realfactory-mobile-header-wrap {
    top: 32px;
  }

  .realfactory-mobile-header,
  .realfactory-mobile-header-container {
    background: #ffffff !important;
    min-height: 72px;
  }

  .realfactory-mobile-header-container {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 9px 18px !important;
    width: 100% !important;
  }

  .realfactory-mobile-header .realfactory-logo,
  .realfactory-mobile-header .realfactory-logo-inner {
    margin: 0 !important;
    max-width: min(190px, 57vw) !important;
    padding: 0 !important;
  }

  .realfactory-mobile-header .realfactory-logo img {
    display: block;
    height: auto !important;
    max-height: 54px;
    max-width: 100% !important;
    object-fit: contain;
    width: auto !important;
  }

  .realfactory-mobile-menu-right {
    align-items: center !important;
    display: flex !important;
    gap: 8px;
    margin-left: auto !important;
  }

  #realfactory-mobile-top-search {
    display: none !important;
  }

  .halcyon-site-core-menu-trigger {
    align-items: center;
    background: #101820;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 44px;
  }

  .halcyon-site-core-menu-trigger svg {
    fill: currentColor;
    height: 22px;
    width: 22px;
  }

  .halcyon-site-core-menu-panel {
    background: #101820;
    bottom: 0;
    color: #ffffff;
    display: none;
    left: 0;
    overflow-y: auto;
    padding: max(18px, env(safe-area-inset-top)) 22px 32px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10090;
  }

  .halcyon-site-core-menu-panel.is-open {
    display: block !important;
    isolation: isolate;
    opacity: 1 !important;
    position: fixed !important;
    transform: none !important;
    visibility: visible !important;
    z-index: 2147483000 !important;
  }

  .halcyon-site-core-menu-panel,
  .halcyon-site-core-menu-panel * {
    box-sizing: border-box;
  }

  .halcyon-site-core-menu-panel-head {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 15px;
  }

  .halcyon-site-core-menu-panel-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .halcyon-site-core-menu-close {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 24px;
    height: 42px;
    justify-content: center;
    line-height: 1;
    width: 42px;
  }

  .halcyon-site-core-menu-list,
  .halcyon-site-core-menu-list ul {
    clear: both !important;
    display: block !important;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100% !important;
  }

  .halcyon-site-core-menu-list li {
    clear: both !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    position: relative !important;
    width: 100% !important;
  }

  .halcyon-site-core-menu-list > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
  }

  .halcyon-site-core-menu-list a {
    color: #ffffff !important;
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    padding: 16px 52px 16px 0;
    text-decoration: none;
  }

  .halcyon-site-core-menu-list .current-menu-item > a,
  .halcyon-site-core-menu-list a:hover,
  .halcyon-site-core-menu-list a:focus {
    color: #fec42d !important;
  }

  .halcyon-site-core-menu-list .sub-menu {
    display: block !important;
    float: none !important;
    left: auto !important;
    opacity: 1 !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    visibility: visible !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding: 0 0 3px 16px;
  }

  .halcyon-site-core-menu-list .sub-menu[hidden] {
    display: none !important;
  }

  .halcyon-site-core-menu-list .sub-menu a {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 0;
  }

  .halcyon-site-core-menu-subtoggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    height: 52px;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 46px;
  }

  .halcyon-site-core-menu-subtoggle[aria-expanded="true"] {
    color: #fec42d;
    transform: rotate(45deg);
  }

  .halcyon-site-core-menu-cta {
    background: #fec42d;
    color: #101820 !important;
    display: block;
    font-size: 16px;
    font-weight: 800;
    margin-top: 24px;
    padding: 16px 20px;
    text-align: center;
    text-decoration: none;
  }

  body.halcyon-site-core-menu-open {
    overflow: hidden !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar .realfactory-mobile-header-wrap {
    top: 46px;
  }
}

@media (max-width: 767px) {
  /* A single clear hero avoids the empty mobile carousel frame. */
  body.home #SR7_1_1,
  body.home #SR7_1_1 sr7-mask,
  body.home #SR7_1_1 sr7-slide,
  body.home #SR7_1_1 sr7-content {
    height: 540px !important;
    max-width: 100vw !important;
    min-height: 540px !important;
    overflow: hidden !important;
  }

  body.home #SR7_1_1 sr7-slide:not(#SR7_1_1-1) {
    display: none !important;
  }

  body.home #SR7_1_1-1 {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.home #SR7_1_1-1-1,
  body.home #SR7_1_1-1-2,
  body.home #SR7_1_1-1-3,
  body.home #SR7_1_1-1-4,
  body.home #SR7_1_1-1-6 {
    left: 22px !important;
    max-width: calc(100vw - 44px) !important;
    opacity: 1 !important;
    right: auto !important;
    visibility: visible !important;
    width: calc(100vw - 44px) !important;
  }

  body.home #SR7_1_1-1-1 {
    font-size: 15px !important;
    line-height: 1.2 !important;
    top: 74px !important;
  }

  body.home #SR7_1_1-1-2,
  body.home #SR7_1_1-1-3 {
    font-size: 34px !important;
    line-height: 1.05 !important;
  }

  body.home #SR7_1_1-1-2 {
    top: 112px !important;
  }

  body.home #SR7_1_1-1-3 {
    top: 150px !important;
  }

  body.home #SR7_1_1-1-4 {
    font-size: 15px !important;
    line-height: 1.5 !important;
    top: 206px !important;
  }

  body.home #SR7_1_1-1-6 {
    top: 390px !important;
    width: auto !important;
  }

  body.page-id-5026 .halcyon-project-quote-hero,
  body.page-id-5026 .halcyon-conversion-hero {
    margin-top: 0 !important;
  }
}
