/* Centre the navigation independently from the logo and CTA at iPad/laptop widths. */
@media (min-width: 980px) and (max-width: 1480px) {
  .elementor-4584 .elementor-element-38cc2b7 > .e-con-inner {
    position: relative;
  }

  .elementor-4584 .elementor-element-8eae7f0 {
    position: static;
  }

  .elementor-4584 .elementor-element-6134452 {
    position: absolute;
    left: 50%;
    z-index: 2;
    width: max-content;
    max-width: calc(100% - 360px);
    transform: translateX(-50%);
  }
}

/*
 * Mobile off-canvas navigation.
 * Use the dynamic viewport and a self-scrolling panel so Safari's browser bars
 * cannot cover the legal links or copyright at the bottom of the drawer.
 */
@media (max-width: 979px) {
  .elementor-4584 .elementor-element-d097e09 {
    --e-off-canvas-height: 100vh;
    --e-off-canvas-width: 100vw;
  }

  @supports (height: 100svh) {
    .elementor-4584 .elementor-element-d097e09 {
      --e-off-canvas-height: 100svh;
    }
  }

  @supports (height: 100dvh) {
    .elementor-4584 .elementor-element-d097e09 {
      --e-off-canvas-height: 100dvh;
    }
  }

  #off-canvas-d097e09,
  #off-canvas-d097e09 .e-off-canvas__main {
    width: 100vw;
    max-width: none;
  }

  #off-canvas-d097e09 .e-off-canvas__main {
    align-items: stretch;
  }

  #off-canvas-d097e09 .e-off-canvas__content {
    width: 100vw;
    max-width: none;
    height: var(--e-off-canvas-height);
    min-height: var(--e-off-canvas-height);
    max-height: var(--e-off-canvas-height);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 44%, #fff6f9 100%);
  }

  .elementor-4584 .elementor-element-8a799be {
    width: 100%;
    min-height: 100%;
    height: auto;
    justify-content: flex-start;
    box-sizing: border-box;
    padding:
      max(18px, env(safe-area-inset-top))
      max(22px, env(safe-area-inset-right))
      calc(22px + env(safe-area-inset-bottom))
      max(22px, env(safe-area-inset-left));
  }

  .elementor-4584 .elementor-element-8948f0e,
  .elementor-4584 .elementor-element-6b02ee3,
  .elementor-4584 .elementor-element-8948f0e > .e-con-inner,
  .elementor-4584 .elementor-element-6b02ee3 > .e-con-inner {
    width: 100%;
    max-width: none;
  }

  /* Logo and close control. */
  .elementor-4584 .elementor-element-baa3a3c {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: start;
    gap: 16px;
    width: 100%;
    min-height: 72px;
  }

  .elementor-4584 .elementor-element-7e29929 {
    width: 74px;
    max-width: 74px;
    justify-self: start;
  }

  .elementor-4584 .elementor-element-7e29929 img {
    width: 100%;
    height: auto;
  }

  .elementor-4584 .elementor-element-1df927b {
    width: 44px;
    min-width: 44px;
    justify-self: end;
  }

  .elementor-4584 .elementor-element-e35edb4,
  .elementor-4584 .elementor-element-e35edb4 .elementor-icon-wrapper,
  .elementor-4584 .elementor-element-e35edb4 .elementor-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .elementor-4584 .elementor-element-e35edb4 .elementor-icon {
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 8px;
  }

  .elementor-4584 .elementor-element-e35edb4 .elementor-icon:focus-visible {
    outline: 3px solid #fe2b75;
    outline-offset: 4px;
  }

  /* Navigation rhythm and states. */
  .elementor-4584 .elementor-element-399d150 {
    width: 100%;
    margin-top: clamp(48px, 8dvh, 76px);
  }

  .elementor-4584 .elementor-element-12acc59,
  .elementor-4584 .elementor-element-12acc59 nav,
  .elementor-4584 .elementor-element-12acc59 .elementor-nav-menu,
  .elementor-4584 .elementor-element-12acc59 .elementor-nav-menu > li {
    width: 100%;
  }

  .elementor-4584
    .elementor-element-12acc59
    .elementor-nav-menu
    > li:not(.menu-item-6390)
    > a.elementor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(52px, 6.6dvh, 58px);
    padding: 15px 16px;
    color: #072033;
    background: transparent;
    font-family: "Inter", sans-serif;
    font-size: clamp(18px, 4.65vw, 20px);
    font-weight: 500;
    line-height: 26px;
  }

  /*
   * Elementor adds the caret only when a real submenu exists. Keep Advisory
   * arrow-free today; this becomes the separate, comfortable submenu target
   * automatically after child service pages are added to the WordPress menu.
   */
  .elementor-4584
    .elementor-element-12acc59
    .menu-item-has-children
    > a.elementor-item {
    gap: 10px;
  }

  .elementor-4584
    .elementor-element-12acc59
    .menu-item-has-children
    > a.elementor-item
    .sub-arrow {
    position: static;
    display: inline-grid;
    place-items: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    color: #fe2b75;
  }

  .elementor-4584
    .elementor-element-12acc59
    .elementor-nav-menu
    > li:not(.menu-item-6390)
    > a.elementor-item:hover,
  .elementor-4584
    .elementor-element-12acc59
    .elementor-nav-menu
    > li:not(.menu-item-6390)
    > a.elementor-item.elementor-item-active,
  .elementor-4584
    .elementor-element-12acc59
    .elementor-nav-menu
    > li:not(.menu-item-6390)
    > a.elementor-item:focus-visible {
    color: #fe2b75;
    background: transparent;
  }

  .elementor-4584
    .elementor-element-12acc59
    .elementor-nav-menu
    > li:not(.menu-item-6390)
    > a.elementor-item:focus-visible {
    outline: 3px solid #fe2b75;
    outline-offset: -3px;
    border-radius: 8px;
  }

  /* Premium primary action: calendar, label, brand arrow. */
  .elementor-4584 .elementor-element-12acc59 li.menu-item-6390 {
    display: flex;
    justify-content: center;
    flex: 0 0 100%;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: clamp(34px, 4.5dvh, 46px) !important;
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item {
    display: flex;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 56px;
    padding: 0;
    color: #ffffff;
    background: transparent;
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item
    > .book-btn {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    width: min(72vw, 310px) !important;
    max-width: 100% !important;
    min-height: clamp(56px, 7dvh, 60px);
    box-sizing: border-box;
    padding: 0 20px;
    border-radius: 999px;
    color: #ffffff;
    background: #072033;
    box-shadow: 0 10px 30px rgba(7, 32, 51, 0.12);
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
    transition: background-color 180ms ease, transform 180ms ease;
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item
    > .book-btn::before {
    content: "";
    width: 24px;
    height: 24px;
    background: #ffffff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3Zm1 15a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-8h16v8Zm0-10H4V7a1 1 0 0 1 1-1h1v1h2V6h8v1h2V6h1a1 1 0 0 1 1 1v2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3Zm1 15a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-8h16v8Zm0-10H4V7a1 1 0 0 1 1-1h1v1h2V6h8v1h2V6h1a1 1 0 0 1 1 1v2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item
    .text {
    text-align: center;
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item
    .arrow {
    justify-self: end;
    color: #fe2b75;
    font-size: 26px;
    line-height: 1;
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item:hover
    > .book-btn,
  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item:focus-visible
    > .book-btn {
    background: #0c2a40;
    transform: translateY(-1px);
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item:focus-visible {
    outline: 3px solid #fe2b75;
    outline-offset: 4px;
    border-radius: 999px;
  }

  /* Footer stays low on tall phones and becomes scrollable on short ones. */
  .elementor-4584 .elementor-element-6b02ee3 {
    flex-shrink: 0;
    margin-top: auto;
    padding: clamp(48px, 7dvh, 72px) 0 0;
  }

  .elementor-4584 .elementor-element-6b02ee3 > .e-con-inner {
    gap: 18px;
  }

  .elementor-4584 .elementor-element-e44db10 {
    width: min(100%, 280px);
    max-width: 280px;
    margin-inline: auto;
    color: #5b6c82;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 22px;
  }

  .elementor-4584 .elementor-element-e44db10 p {
    margin: 0;
  }

  .elementor-4584 .elementor-element-fc3677c {
    margin-top: 4px;
  }

  .elementor-4584 .elementor-element-fc3677c .elementor-social-icons-wrapper {
    gap: 12px;
  }

  .elementor-4584 .elementor-element-fc3677c .elementor-social-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 17px;
  }

  .elementor-4584 .elementor-element-fc3677c .elementor-social-icon:focus-visible {
    outline: 3px solid #fe2b75;
    outline-offset: 3px;
  }

  .elementor-4584 .elementor-element-cd08dea {
    margin-top: 12px;
  }

  .elementor-4584 .elementor-element-cd08dea .elementor-divider-separator {
    border-top-width: 1px;
    border-top-color: rgba(84, 89, 95, 0.25);
  }

  .elementor-4584 .elementor-element-541fb93 .elementor-icon-list-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 4px;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-inline: 0;
  }

  .elementor-4584 .elementor-element-541fb93 .elementor-icon-list-text,
  .elementor-4584 .elementor-element-6edd646 {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 18px;
  }

  .elementor-4584 .elementor-element-6edd646 p {
    margin: 0;
  }
}

/*
 * Mobile drawer conversion path.
 * The diagnostic action belongs in the persistent lower controls, directly
 * before the social links. The original menu item is also detached in
 * WordPress; this selector is a cache-transition failsafe only.
 */
@media (max-width: 979px) {
  .elementor-4584 .elementor-element-12acc59 li.menu-item-6390 {
    display: none !important;
  }

  .elementor-4584 .elementor-element-e44db10 {
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
  }

  .elementor-4584 .elementor-element-e44db10 p {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
  }

  .elementor-4584
    .elementor-element-e44db10
    .af-mobile-diagnostic-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(calc(100vw - 40px), 280px);
    min-height: var(--af-menu-cta-height);
    box-sizing: border-box;
    padding: 0 42px;
    border-radius: 999px;
    color: #ffffff;
    background: #072033;
    box-shadow: 0 10px 30px rgba(7, 32, 51, 0.12);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 180ms ease;
  }

  .elementor-4584
    .elementor-element-e44db10
    .af-mobile-diagnostic-cta::after {
    position: absolute;
    right: 20px;
    width: 18px;
    height: 18px;
    content: "";
    background: #fe2b75;
    -webkit-mask: var(--af-nav-arrow-right) center / 18px 18px no-repeat;
    mask: var(--af-nav-arrow-right) center / 18px 18px no-repeat;
    transition: transform 180ms ease;
  }

  .elementor-4584
    .elementor-element-e44db10
    .af-mobile-diagnostic-cta:hover,
  .elementor-4584
    .elementor-element-e44db10
    .af-mobile-diagnostic-cta:focus-visible {
    color: #ffffff;
    background: #0c2a40;
  }

  .elementor-4584
    .elementor-element-e44db10
    .af-mobile-diagnostic-cta:hover::after,
  .elementor-4584
    .elementor-element-e44db10
    .af-mobile-diagnostic-cta:focus-visible::after {
    transform: translateX(3px);
  }

  .elementor-4584
    .elementor-element-e44db10
    .af-mobile-diagnostic-cta:focus-visible {
    outline: 3px solid #fe2b75;
    outline-offset: 4px;
  }
}

@media (max-width: 979px) and (prefers-reduced-motion: reduce) {
  .elementor-4584
    .elementor-element-e44db10
    .af-mobile-diagnostic-cta,
  .elementor-4584
    .elementor-element-e44db10
    .af-mobile-diagnostic-cta::after {
    transition: none;
  }
}

@media (max-width: 979px) and (max-height: 700px) {
  .elementor-4584 .elementor-element-399d150 {
    margin-top: 40px;
  }

  .elementor-4584
    .elementor-element-12acc59
    .elementor-nav-menu
    > li:not(.menu-item-6390)
    > a.elementor-item {
    min-height: 52px;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .elementor-4584 .elementor-element-12acc59 li.menu-item-6390 {
    margin-top: 34px !important;
  }

  .elementor-4584 .elementor-element-6b02ee3 {
    margin-top: 52px;
    padding-top: 0;
  }
}

@media (max-width: 979px) and (max-height: 600px) {
  .elementor-4584 .elementor-element-399d150 {
    margin-top: 28px;
  }

  .elementor-4584
    .elementor-element-12acc59
    .elementor-nav-menu
    > li:not(.menu-item-6390)
    > a.elementor-item {
    min-height: 48px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .elementor-4584 .elementor-element-12acc59 li.menu-item-6390 {
    margin-top: 28px !important;
  }

  .elementor-4584 .elementor-element-6b02ee3 {
    margin-top: 36px;
  }
}

@media (max-width: 360px) {
  .elementor-4584 .elementor-element-8a799be {
    padding-right: max(18px, env(safe-area-inset-right));
    padding-left: max(18px, env(safe-area-inset-left));
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item
    > .book-btn {
    width: min(76vw, 274px) !important;
    padding-inline: 18px;
  }
}

/*
 * Viewport-fit mobile menu
 * Keep the drawer itself fixed. The current six-link menu fits without page
 * scrolling; only the central navigation may scroll if future service
 * submenus make it taller. Header and legal controls always remain visible.
 */
@media (max-width: 979px) {
  #off-canvas-d097e09 .e-off-canvas__content {
    overflow: hidden;
  }

  .elementor-4584 .elementor-element-8a799be {
    --af-menu-row-height: clamp(46px, 5.8dvh, 52px);
    --af-menu-cta-height: clamp(48px, 6.2dvh, 54px);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0 !important;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding:
      max(12px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
  }

  .elementor-4584 .elementor-element-8948f0e {
    min-height: 0;
    overflow: hidden;
  }

  .elementor-4584 .elementor-element-8948f0e > .e-con-inner {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0 !important;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .elementor-4584 .elementor-element-baa3a3c {
    min-height: clamp(58px, 7dvh, 68px);
    padding: 0 !important;
  }

  .elementor-4584 .elementor-element-399d150 {
    min-height: 0;
    margin-top: clamp(20px, 4dvh, 38px) !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-block: 10px;
  }

  .elementor-4584
    .elementor-element-12acc59
    .elementor-nav-menu
    > li:not(.menu-item-6390)
    > a.elementor-item {
    box-sizing: border-box;
    height: var(--af-menu-row-height);
    min-height: var(--af-menu-row-height);
    padding: 0 14px !important;
    font-size: clamp(17px, 4.4vw, 19px);
    line-height: 22px;
  }

  .elementor-4584 .elementor-element-12acc59 li.menu-item-6390 {
    height: var(--af-menu-cta-height);
    margin-top: clamp(16px, 2.6dvh, 24px) !important;
    padding: 0 !important;
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item,
  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item
    > .book-btn {
    height: var(--af-menu-cta-height);
    min-height: var(--af-menu-cta-height);
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item
    > .book-btn {
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    gap: 12px;
    width: min(calc(100vw - 64px), 280px) !important;
    padding: 0 18px !important;
    font-size: 16px;
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item
    > .book-btn::before {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item
    .arrow {
    font-size: 24px;
  }

  .elementor-4584 .elementor-element-6b02ee3 {
    min-height: 0;
    margin-top: 0 !important;
    padding: clamp(14px, 2.5dvh, 24px) 0 0 !important;
  }

  .elementor-4584 .elementor-element-6b02ee3 > .e-con-inner {
    gap: clamp(8px, 1.3dvh, 12px) !important;
  }

  .elementor-4584 .elementor-element-e44db10 {
    font-size: 14px;
    line-height: 19px;
  }

  .elementor-4584 .elementor-element-fc3677c {
    margin-top: 0;
  }

  .elementor-4584 .elementor-element-fc3677c .elementor-social-icon {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .elementor-4584 .elementor-element-cd08dea {
    margin-top: 4px;
  }

  .elementor-4584 .elementor-element-541fb93 .elementor-icon-list-text,
  .elementor-4584 .elementor-element-6edd646 {
    font-size: 11.5px;
    line-height: 16px;
  }
}

@media (max-width: 979px) and (max-height: 700px) {
  .elementor-4584 .elementor-element-8a799be {
    --af-menu-row-height: 44px;
    --af-menu-cta-height: 48px;
    padding:
      max(10px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }

  .elementor-4584 .elementor-element-baa3a3c {
    min-height: 56px;
  }

  .elementor-4584 .elementor-element-baa3a3c .elementor-element-8580543 img {
    width: 60px;
  }

  .elementor-4584 .elementor-element-399d150 {
    margin-top: 4px !important;
  }

  .elementor-4584 .elementor-element-12acc59 li.menu-item-6390 {
    margin-top: 12px !important;
  }

  .elementor-4584 .elementor-element-6b02ee3 {
    padding-top: 10px !important;
  }

  .elementor-4584 .elementor-element-6b02ee3 > .e-con-inner {
    gap: 7px !important;
  }

  .elementor-4584 .elementor-element-e44db10 {
    font-size: 13px;
    line-height: 18px;
  }

  .elementor-4584 .elementor-element-cd08dea {
    margin-top: 2px;
  }

  .elementor-4584 .elementor-element-541fb93 .elementor-icon-list-text,
  .elementor-4584 .elementor-element-6edd646 {
    font-size: 11px;
    line-height: 15px;
  }
}

@media (max-width: 979px) and (max-height: 600px) {
  /* Keep the primary conversion action available on the shortest phones. */
  .elementor-4584 .elementor-element-e44db10 {
    display: block !important;
  }

  .elementor-4584 .elementor-element-399d150 {
    margin-top: 4px !important;
  }

  .elementor-4584 .elementor-element-12acc59 li.menu-item-6390 {
    margin-top: 8px !important;
  }

  .elementor-4584 .elementor-element-6b02ee3 {
    padding-top: 8px !important;
  }
}

/*
 * Give the five primary links a calmer rhythm on regular-height drawers.
 * Short viewports keep the compact 44px rows defined above so every persistent
 * control continues to fit without introducing a third layout state.
 */
@media (max-width: 979px) and (min-height: 701px) {
  .elementor-4584 .elementor-element-8a799be {
    --af-menu-row-height: clamp(54px, 6.9dvh, 60px);
  }

  .elementor-4584 .elementor-element-399d150 {
    margin-top: clamp(26px, 5dvh, 44px) !important;
  }
}

/*
 * Safari bottom-toolbar clearance.
 * Reserve a small buffer in addition to the device safe area so the copyright
 * remains fully visible above Safari's floating address bar.
 */
@media (max-width: 979px) {
  .elementor-4584 .elementor-element-8a799be {
    padding-bottom: calc(12px + max(12px, env(safe-area-inset-bottom)));
  }
}

@media (max-width: 979px) and (max-height: 700px) {
  .elementor-4584 .elementor-element-8a799be {
    padding-bottom: calc(12px + max(10px, env(safe-area-inset-bottom)));
  }
}

/*
 * Compact navigation owns the mobile footer experience.
 * Hide only the separate global footer while the full-screen drawer variant
 * is active; desktop keeps template 721 unchanged.
 */
@media (max-width: 979px) {
  body:not(.elementor-editor-active)
    > footer.elementor.elementor-721.elementor-location-footer[data-elementor-id="721"] {
    display: none !important;
  }

  /* Match the 400ms Operational Gap accordion motion standard. */
  .elementor-4584 .elementor-element-d097e09 {
    --e-off-canvas-animation-duration: 400ms;
  }
}

/*
 * Keep the mobile conversion path together: Contact, Diagnostic CTA, socials.
 * The legal controls continue to use the remaining drawer height and stay low.
 */
@media (max-width: 979px) {
  .elementor-4584 .elementor-element-8a799be {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .elementor-4584 .elementor-element-8948f0e {
    height: auto;
    overflow: visible;
  }

  .elementor-4584 .elementor-element-8948f0e > .e-con-inner {
    grid-template-rows: auto auto;
    height: auto;
  }

  .elementor-4584 .elementor-element-6b02ee3 {
    align-self: stretch;
  }

  .elementor-4584 .elementor-element-6b02ee3 > .e-con-inner {
    height: 100%;
  }

  .elementor-4584 .elementor-element-cd08dea {
    margin-top: auto !important;
  }
}

@media (min-width: 768px) and (max-width: 979px) {
  .elementor-4584 .elementor-element-8948f0e > .e-con-inner,
  .elementor-4584 .elementor-element-399d150 {
    padding-block-end: 0;
  }

  .elementor-4584 .elementor-element-6b02ee3 > .e-con-inner {
    padding-block-start: 0;
  }
}

/* Very short landscape drawers keep the same order and become scrollable. */
@media (max-width: 979px) and (max-height: 500px) {
  #off-canvas-d097e09 .e-off-canvas__content {
    overflow-y: auto;
  }

  .elementor-4584 .elementor-element-8a799be {
    grid-template-rows: auto auto;
    height: auto;
    min-height: 100%;
    max-height: none;
  }

  .elementor-4584 .elementor-element-6b02ee3 > .e-con-inner {
    height: auto;
  }

  .elementor-4584 .elementor-element-cd08dea {
    margin-top: 20px !important;
  }
}

@media (max-width: 979px) and (prefers-reduced-motion: reduce) {
  .elementor-4584 .elementor-element-d097e09 {
    --e-off-canvas-animation-duration: 1ms;
  }
}

/*
 * One shared navigation CTA icon in both responsive variants.
 * Lucide ArrowRight geometry: 18px visual, 2.25px rounded stroke.
 */
.elementor-4584 {
  --af-nav-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}

.elementor-4584 .elementor-element-dbd9b0a .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.elementor-4584 .elementor-element-dbd9b0a .elementor-button-icon {
  display: none !important;
}

.elementor-4584 .elementor-element-dbd9b0a .elementor-button::after {
  content: "";
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background: #fe2b75;
  -webkit-mask: var(--af-nav-arrow-right) center / 18px 18px no-repeat;
  mask: var(--af-nav-arrow-right) center / 18px 18px no-repeat;
  transition: transform 180ms ease;
}

.elementor-4584 .elementor-element-dbd9b0a .elementor-button:hover::after,
.elementor-4584 .elementor-element-dbd9b0a .elementor-button:focus-visible::after {
  transform: translateX(3px);
}

/*
 * Preserve the wide header at its exact 980px boundary without allowing the
 * longer CTA label to crowd Contact. This is the same desktop variant with a
 * compact rhythm, not a third responsive state.
 */
@media (min-width: 980px) and (max-width: 1199px) {
  .elementor-4584
    .elementor-element-6134452
    .elementor-nav-menu--main
    .elementor-item {
    padding-inline: 6px !important;
    font-size: 14px;
  }

  .elementor-4584 .elementor-element-dbd9b0a .elementor-button {
    gap: 8px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .elementor-4584 .elementor-element-dbd9b0a .elementor-button::after {
    flex-basis: 17px;
    width: 17px;
    height: 17px;
    -webkit-mask-size: 17px 17px;
    mask-size: 17px 17px;
  }
}

@media (min-width: 980px) and (max-width: 1279px) {
  /*
   * Elementor centres the absolute menu independently from the CTA. The
   * longer diagnostic label needs a small, bounded offset so Contact and the
   * button keep a real gap at laptop and split-screen widths.
   */
  .elementor-4584 .elementor-element-6134452 {
    transform: translateX(calc(-50% - 28px)) !important;
  }
}

@media (max-width: 979px) {
  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item
    > .book-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-template-columns: none;
    gap: 0;
    width: min(calc(100vw - 48px), 320px) !important;
    padding-inline: 46px !important;
    white-space: nowrap;
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item
    > .book-btn::before {
    content: none !important;
    display: none !important;
    -webkit-mask: none;
    mask: none;
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item
    .text {
    text-align: center;
    white-space: nowrap;
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item
    .arrow {
    position: absolute;
    right: 20px;
    display: block;
    width: 18px;
    height: 18px;
    color: transparent;
    font-size: 0;
    line-height: 0;
    background: #fe2b75;
    -webkit-mask: var(--af-nav-arrow-right) center / 18px 18px no-repeat;
    mask: var(--af-nav-arrow-right) center / 18px 18px no-repeat;
    transition: transform 180ms ease;
  }

  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item:hover
    .arrow,
  .elementor-4584
    .elementor-element-12acc59
    li.menu-item-6390
    > a.elementor-item:focus-visible
    .arrow {
    transform: translateX(3px);
  }
}
