/* ======================================================
   RMWL Sticky Side Menu
   Proposed destination:
   /wp-content/themes/healthcoach-child/css/rmw-sticky-side-menu.css

   Purpose:
   Sticky side menu and CTA styling for longer pages only.
   ====================================================== */

.rmw-sticky-page-nav-polished {
  position: fixed;
  right: 24px;
  top: auto !important;
  bottom: 24px !important;
  transform: none !important;
  z-index: 999;
  width: 240px;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100vh - 48px) !important;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(105, 49, 137, 0.14);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  color: #111111;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.rmw-sticky-page-nav-polished.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px) !important;
  pointer-events: none;
}

.rmw-sticky-nav-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(105, 49, 137, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #693189;
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 22px;
  cursor: pointer;
  padding: 0;
}

.rmw-sticky-nav-close:hover,
.rmw-sticky-nav-close:focus {
  background: #693189;
  color: #ffffff;
}

.rmw-sticky-page-nav-toggle {
  display: none;
  position: fixed;
  right: 0;
  top: auto !important;
  bottom: 160px !important;
  transform: rotate(-90deg);
  transform-origin: right bottom;
  z-index: 998;
  background: #693189;
  color: #ffffff;
  border: 2px solid #693189;
  border-radius: 12px 12px 0 0;
  padding: 9px 16px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.rmw-sticky-page-nav-toggle.is-visible {
  display: block;
}

.rmw-sticky-page-nav-toggle:hover,
.rmw-sticky-page-nav-toggle:focus {
  background: #b09b6e;
  color: #000000;
  border-color: #b09b6e;
}

.rmw-sticky-page-nav-polished .rmw-sticky-image-wrap {
  display: none !important;
}

.rmw-sticky-image-wrap {
  position: relative;
  height: 112px;
  overflow: hidden;
  background: #f7f4ed;
}

.rmw-sticky-nav-image {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
}

.rmw-sticky-gold-wave {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -20px;
  height: 48px;
  background: #ffffff;
  border-top: 6px solid #b09b6e;
  border-radius: 50% 50% 0 0;
}

.rmw-sticky-nav-inner {
  padding: 18px 13px 12px;
  background: #ffffff;
}

.rmw-sticky-nav-title {
  font-family: "Montserrat", Arial, sans-serif;
  color: #693189;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  margin: 0 0 14px;
}

.rmw-sticky-page-nav-polished ul,
.rmw-sticky-page-nav-polished li {
  list-style: none !important;
}

.rmw-sticky-page-nav-polished ul {
  padding-left: 0 !important;
  margin: 0 !important;
}

.rmw-sticky-page-nav-polished li {
  margin: 0 0 8px !important;
  padding-left: 0 !important;
}

.rmw-sticky-page-nav-polished li::before,
.rmw-sticky-page-nav-polished li::after {
  display: none !important;
  content: none !important;
}

.rmw-sticky-page-nav-polished li a {
  display: grid;
  grid-template-columns: 28px 1fr 12px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-family: "Montserrat", Arial, sans-serif;
  color: #693189 !important;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none !important;
  background: #ffffff;
  border: 1px solid rgba(105, 49, 137, 0.14);
  border-radius: 10px;
  padding: 7px 9px 7px 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.035);
  transition: all 0.2s ease;
}

.rmw-sticky-page-nav-polished li a:hover,
.rmw-sticky-page-nav-polished li a:focus {
  background: #fffdef;
  border-color: #693189;
  color: #000000 !important;
  transform: translateX(-3px);
}

.rmw-nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f6f0fa;
  border: 1px solid rgba(105, 49, 137, 0.28);
  color: #693189;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rmw-nav-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.rmw-nav-arrow {
  color: #693189;
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.rmw-sticky-nav-cta {
  position: relative;
  background: linear-gradient(145deg, #693189 0%, #52206d 100%);
  color: #ffffff;
  padding: 26px 16px 22px;
  text-align: center;
  border-top: 6px solid #b09b6e;
}

.rmw-sticky-cta-tab {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 13px;
  background: #b09b6e;
  border-radius: 6px 6px 0 0;
}

.rmw-sticky-cta-heading {
  font-family: "Montserrat", Arial, sans-serif;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
}

.rmw-sticky-page-nav-polished .rmw-sticky-cta-text {
  display: none !important;
}

.rmw-sticky-cta-text {
  font-family: "Open Sans", Arial, sans-serif;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 auto 16px;
  max-width: 190px;
}

.rmw-sticky-cta-button,
.rmw-sticky-cta-secondary {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  border-radius: 10px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.rmw-sticky-cta-button {
  background: #b09b6e;
  color: #ffffff !important;
  border: 2px solid #b09b6e;
  margin-bottom: 11px;
}

.rmw-sticky-cta-button:hover,
.rmw-sticky-cta-button:focus {
  background: #f9d905;
  color: #000000 !important;
  border-color: #f9d905;
}

.rmw-sticky-cta-secondary {
  background: transparent;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.rmw-sticky-cta-secondary:hover,
.rmw-sticky-cta-secondary:focus {
  background: #ffffff;
  color: #693189 !important;
  border-color: #ffffff;
}

.rmw-sticky-page-nav-polished a:focus,
.rmw-sticky-nav-close:focus,
.rmw-sticky-page-nav-toggle:focus {
  outline: 3px solid #f9d905;
  outline-offset: 3px;
}

body.rmwl-header-is-sticky .rmw-sticky-page-nav-polished {
  top: auto !important;
  bottom: 36px !important;
  transform: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100vh - 130px) !important;
  overflow-y: auto;
}

body.rmwl-header-is-sticky .rmw-sticky-page-nav-toggle {
  top: auto !important;
  bottom: 160px !important;
  transform: rotate(-90deg);
  transform-origin: right bottom;
}

#what-is-new-direction,
#who-is-a-good-fit,
#why-it-matters,
#how-it-works,
#program-options,
#common-questions,
#quality-safety,
#what-inbody-measures,
#why-we-use-it {
  scroll-margin-top: 120px;
}

@media (max-width: 1300px) {
  .rmw-sticky-page-nav-polished,
  .rmw-sticky-page-nav-toggle {
    display: none !important;
  }
}
