/* NK Healthy Life — replacements for runtime-rendered UI (megamenu, mobile nav, form) */

/* megamenu dropdown */
.nk-has-megamenu { position: relative; }
.nk-megamenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border-radius: 12px; padding: 14px 10px;
  box-shadow: 0 18px 45px rgba(17, 17, 26, .16), 0 4px 10px rgba(17, 17, 26, .08);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease;
  z-index: 999; min-width: 260px;
}
.nk-has-megamenu.nk-open .nk-megamenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nk-megamenu__list { display: block !important; list-style: none; margin: 0 !important; padding: 0 !important; }
.nk-megamenu__list > li { display: block !important; margin: 0 !important; }
.nk-megamenu--cols2 { min-width: 560px; }
.nk-megamenu--cols2 .nk-megamenu__list { column-count: 2; column-gap: 8px; }
.nk-megamenu__link {
  display: block; padding: 10px 16px; border-radius: 8px; white-space: nowrap;
  font-family: 'Atkinson Hyperlegible Next', sans-serif; font-size: 16px; font-weight: 500;
  color: rgb(24, 81, 51); text-decoration: none; break-inside: avoid;
}
.nk-megamenu__link:hover { background: rgba(24, 81, 51, .08); }

/* burger + mobile menu */
.nk-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 8px; background: transparent; border: 0; cursor: pointer;
}
.nk-burger span { display: block; height: 3px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
body.nk-mm-open .nk-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nk-mm-open .nk-burger span:nth-child(2) { opacity: 0; }
body.nk-mm-open .nk-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nk-mobile-menu {
  position: fixed; inset: 0; z-index: 998; background: #fff; overflow-y: auto;
  padding: 110px 24px 40px; display: none;
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
}
body.nk-mm-open .nk-mobile-menu { display: block; }
body.nk-mm-open { overflow: hidden; }
body.nk-mm-open section.menu2 { position: relative; z-index: 999; }
.nk-mm-list { list-style: none; margin: 0; padding: 0; }
.nk-mm-list > li { border-bottom: 1px solid rgba(24, 81, 51, .12); }
.nk-mm-link, .nk-mm-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 4px; font-size: 19px; font-weight: 600; color: rgb(24, 81, 51);
  text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: inherit;
}
.nk-mm-toggle svg { transition: transform .2s ease; }
.nk-mm-group.nk-open .nk-mm-toggle svg { transform: rotate(180deg); }
.nk-mm-sub { list-style: none; margin: 0; padding: 0 0 10px; display: none; }
.nk-mm-group.nk-open .nk-mm-sub { display: block; }
.nk-mm-sublink { display: block; padding: 9px 16px; font-size: 17px; color: rgb(34, 34, 34); text-decoration: none; }
.nk-mm-phone { display: block; margin-top: 24px; font-size: 20px; font-weight: 700; color: rgb(24, 81, 51); text-decoration: none; }
.nk-mm-book {
  display: block; margin-top: 16px; padding: 15px 22px; border-radius: 10px; text-align: center;
  background: rgb(24, 81, 51); color: #fff; font-weight: 700; text-decoration: none; font-size: 17px;
}

@media (max-width: 1023px) {
  nav.con-kit-atom-menu-v2--device-desktop { display: none !important; }
  .nk-burger { display: flex; }
  section.menu2 .con-kit-component-link-group a[href^="tel:"] .con-kit-component-button__text { display: none; }
}

/* form validation + thanks */
.nk-invalid input, .nk-invalid select, .nk-invalid textarea, input.nk-invalid, select.nk-invalid {
  border-color: #d54848 !important; box-shadow: 0 0 0 1px #d54848 !important;
}
.nk-form-thanks { text-align: center; padding: 60px 20px; }
.nk-form-thanks h3 { font-size: 32px; margin: 0 0 12px; }
.nk-form-thanks p { font-size: 18px; opacity: .85; max-width: 460px; margin: 0 auto; }

/* Neutralize WP core's block-style helper (`html :where([style*="border-width"])
   {border-style:solid}`) which draws unwanted borders around builder elements whose
   inline style merely contains border-width CSS variables. Zero specificity, so any
   builder rule that intentionally sets a border still wins. */
html :where(.con-kit-site [style*="border-width"]),
html :where(.con-kit-site[style*="border-width"]) { border-style: none; }

/* skip link (matches original) */
.skip-to-content {
  position: absolute; left: -9999px; top: 0; background: #fff; color: #185133;
  padding: 10px 16px; z-index: 10000; border-radius: 0 0 8px 0;
}
.skip-to-content:focus { left: 0; }
