/**
 * RSTQ Modern 1.1.8.0 — menu hover / focus / tap gold highlight
 * Desktop main + sticky fixed header, dropdowns, and #rstq-mobile-h-nav.
 * Gold #e6ae48; current item stays teal #1eacc7 (text); parent
 * #limoking-navigation-gimmick keeps the teal bar at the bottom of the bar.
 *
 * Desktop underline uses background-image (not ::after) so it cannot
 * collide with limoking's a.sf-with-ul::after or sit in the tall
 * padding-bottom box as a mid-text strikethrough. Position is em-based
 * from the top of the link (where the label sits), ~10px under the baseline.
 *
 * Does not change layout, font sizes, or spacing.
 * Does not touch LeadQuote, RingCentral, or gdlr-car.
 */

/* --------------------------------------------------------------------------
   Desktop main menu + sticky fixed header
   Specificity must beat:
   .limoking-header-wrapper.header-style-2-wrapper
     .limoking-navigation-wrapper .limoking-main-menu > li > a { #b8c0c8 }
   which previously blocked the white hover.
   -------------------------------------------------------------------------- */

.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li > a,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li > a,
.limoking-header-inner.limoking-fixed-header .limoking-main-menu > li > a,
.limoking-main-menu > li > a {
  /* Gold underline grows from center, just under the label (not in padding). */
  background-image: linear-gradient(#e6ae48, #e6ae48);
  background-repeat: no-repeat;
  background-position: 50% calc(1em + 10px);
  background-size: 0 2px;
  transition: color 0.25s ease, background-size 0.25s ease;
}

/* Hover underline is background-image (avoids ::after / padding strikethrough). */

.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li:hover > a,
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li:focus-within > a,
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li > a:focus,
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li > a:focus-visible,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li:hover > a,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li:focus-within > a,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li > a:focus,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li > a:focus-visible,
.limoking-header-inner.limoking-fixed-header .limoking-main-menu > li:hover > a,
.limoking-header-inner.limoking-fixed-header .limoking-main-menu > li:focus-within > a,
.limoking-header-inner.limoking-fixed-header .limoking-main-menu > li > a:focus,
.limoking-header-inner.limoking-fixed-header .limoking-main-menu > li > a:focus-visible,
.limoking-main-menu > li:hover > a,
.limoking-main-menu > li:focus-within > a,
.limoking-main-menu > li > a:focus,
.limoking-main-menu > li > a:focus-visible {
  color: #e6ae48 !important;
  background-size: 70% 2px;
}

/* Current page: teal text; NO underline here — parent #limoking-navigation-gimmick
   draws the teal bar at the bottom of the menu bar. */
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-item > a,
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li.current_page_item > a,
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-ancestor > a,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-item > a,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li.current_page_item > a,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-ancestor > a,
.limoking-header-inner.limoking-fixed-header .limoking-main-menu > li.current-menu-item > a,
.limoking-header-inner.limoking-fixed-header .limoking-main-menu > li.current_page_item > a,
.limoking-header-inner.limoking-fixed-header .limoking-main-menu > li.current-menu-ancestor > a,
.limoking-main-menu > li.current-menu-item > a,
.limoking-main-menu > li.current_page_item > a,
.limoking-main-menu > li.current-menu-ancestor > a {
  color: #1eacc7 !important;
  background-size: 0 2px;
}

/* Current + hover/focus: stay teal; still no gold underline (gimmick is the marker) */
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-item:hover > a,
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li.current_page_item:hover > a,
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-ancestor:hover > a,
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-item:focus-within > a,
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li.current_page_item:focus-within > a,
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-ancestor:focus-within > a,
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-item > a:focus,
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li.current_page_item > a:focus,
.limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-ancestor > a:focus,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-item:hover > a,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li.current_page_item:hover > a,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-ancestor:hover > a,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-item:focus-within > a,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li.current_page_item:focus-within > a,
.limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li.current-menu-ancestor:focus-within > a,
.limoking-header-inner.limoking-fixed-header .limoking-main-menu > li.current-menu-item:hover > a,
.limoking-header-inner.limoking-fixed-header .limoking-main-menu > li.current_page_item:hover > a,
.limoking-header-inner.limoking-fixed-header .limoking-main-menu > li.current-menu-ancestor:hover > a,
.limoking-main-menu > li.current-menu-item:hover > a,
.limoking-main-menu > li.current_page_item:hover > a,
.limoking-main-menu > li.current-menu-ancestor:hover > a,
.limoking-main-menu > li.current-menu-item:focus-within > a,
.limoking-main-menu > li.current_page_item:focus-within > a,
.limoking-main-menu > li.current-menu-ancestor:focus-within > a {
  color: #1eacc7 !important;
  background-size: 0 2px;
}

/* --------------------------------------------------------------------------
   Desktop dropdown submenus (Services etc. when present)
   -------------------------------------------------------------------------- */

.limoking-main-menu > li > .sub-menu a,
.limoking-main-menu > li > .sf-mega a {
  background-image: none;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.limoking-main-menu > li > .sub-menu a:hover,
.limoking-main-menu > li > .sub-menu a:focus,
.limoking-main-menu > li > .sub-menu a:focus-visible,
.limoking-main-menu > li > .sf-mega a:hover,
.limoking-main-menu > li > .sf-mega a:focus,
.limoking-main-menu > li > .sf-mega a:focus-visible {
  color: #e6ae48 !important;
  background-color: rgba(0, 0, 0, 0.28) !important;
  background-size: auto;
}

.limoking-main-menu > li > .sub-menu .current-menu-item > a,
.limoking-main-menu > li > .sub-menu .current_page_item > a,
.limoking-main-menu > li > .sub-menu .current-menu-ancestor > a,
.limoking-main-menu > li > .sf-mega .current-menu-item > a,
.limoking-main-menu > li > .sf-mega .current_page_item > a,
.limoking-main-menu > li > .sf-mega .current-menu-ancestor > a {
  color: #1eacc7 !important;
}

/* --------------------------------------------------------------------------
   Mobile horizontal strip #rstq-mobile-h-nav
   (border-bottom underline already sits under the text in mobile-sticky-nav.css)
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 767px) {
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li > a {
    background-image: none;
    transition: color 0.25s ease, border-color 0.25s ease;
  }

  #rstq-mobile-h-nav .rstq-h-nav-scroll > li > a:hover,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li > a:focus,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li > a:focus-visible,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li > a:active,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li.is-hover > a {
    color: #e6ae48 !important;
  }

  /* Current keeps teal underline + white text (not gold); underline is border-bottom */
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li.current-menu-item > a,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li.current_page_item > a,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li.current-menu-ancestor > a,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li.is-current > a,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li.current-menu-item > a:hover,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li.current_page_item > a:hover,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li.current-menu-ancestor > a:hover,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li.is-current > a:hover,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li.current-menu-item > a:active,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li.is-current > a:active {
    color: #ffffff !important;
    border-bottom-color: #1eacc7;
  }
}

/* --------------------------------------------------------------------------
   prefers-reduced-motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .limoking-header-wrapper.header-style-2-wrapper .limoking-navigation-wrapper .limoking-main-menu > li > a,
  .limoking-fixed-header .limoking-navigation-wrapper .limoking-main-menu > li > a,
  .limoking-header-inner.limoking-fixed-header .limoking-main-menu > li > a,
  .limoking-main-menu > li > a,
  .limoking-main-menu > li > .sub-menu a,
  .limoking-main-menu > li > .sf-mega a,
  #rstq-mobile-h-nav .rstq-h-nav-scroll > li > a {
    transition: none !important;
  }
}
