/* =====================================================================
   Header / main navigation – 2026 refactor
   Standalone, responsive header stylesheet (replaces the old FreeHTML5
   menu). Loaded after style.css and overrides it deliberately.
   ===================================================================== */

:root {
  --kk-brand: #006892;
  --kk-brand-dark: #00536f;
  --kk-accent: #f89516;
  --kk-header-h: 72px;
  --kk-ink: #2b2f33;
}

/* Disable the old menu in case leftover markup appears */
#kk-menu {
  display: none !important;
}

/* ----- Header bar ----- */
.kk-site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid #ececec;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  font-family: "Montserrat", Arial, sans-serif;
}

.kk-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--kk-header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.kk-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.kk-brand-logo {
  height: 46px;
  width: auto;
  display: block;
}

/* ----- Desktop navigation ----- */
.kk-nav {
  margin-left: auto;
}

.kk-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kk-nav-list > li {
  position: relative;
}

.kk-nav-list > li > a {
  display: block;
  padding: 10px 14px;
  color: var(--kk-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.kk-nav-list > li > a:hover,
.kk-nav-list > li.active > a {
  color: var(--kk-brand);
  background: rgba(0, 104, 146, 0.07);
}

.kk-caret {
  font-size: 9px;
  vertical-align: middle;
  margin-left: 4px;
}

/* Dropdown */
.kk-subnav {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 8px;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s;
}

.kk-nav-has-sub:hover .kk-subnav,
.kk-nav-has-sub:focus-within .kk-subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kk-subnav > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--kk-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.kk-subnav > li > a:hover,
.kk-subnav > li.active > a {
  background: rgba(0, 104, 146, 0.08);
  color: var(--kk-brand);
}

.kk-subnav-age {
  font-size: 12px;
  font-weight: 600;
  color: #9aa0a6;
}

/* ----- Right-hand actions (opening hours, CTA, burger) ----- */
.kk-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.kk-header-hours {
  font-size: 12px;
  font-weight: 600;
  color: #6b7177;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kk-header-hours img {
  width: 9px;
  height: 9px;
}

.kk-header-cta {
  display: inline-block;
  padding: 10px 20px;
  background: var(--kk-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

.kk-header-cta:hover,
.kk-header-cta:focus {
  background: #e07f00;
  color: #fff;
  transform: translateY(-1px);
}

/* ----- Burger (mobile only) ----- */
.kk-site-header .kk-nav-toggle {
  display: none;
  position: relative;
  top: auto;
  right: auto;
  float: none;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
}

/* No blue focus ring / tap highlight on the menu toggles */
.js-kk-nav-toggle,
.kk-offcanvass-close {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.js-kk-nav-toggle:focus,
.js-kk-nav-toggle:active,
.kk-offcanvass-close:focus,
.kk-offcanvass-close:active {
  outline: none;
  box-shadow: none;
}

.kk-site-header .kk-nav-toggle span,
.kk-site-header .kk-nav-toggle span::before,
.kk-site-header .kk-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 9px;
  width: 22px;
  height: 2px;
  margin: 0;
  background: var(--kk-ink);
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    top 0.2s ease,
    opacity 0.2s ease;
}

.kk-nav-toggle span {
  top: 19px;
}

.kk-nav-toggle span::before {
  top: -7px;
}
.kk-nav-toggle span::after {
  top: 7px;
}

.kk-nav-toggle.active span {
  background: transparent;
}
.kk-nav-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}
.kk-nav-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ----- Mobile off-canvas (uses existing toggle logic) ----- */
#kk-offcanvass {
  position: fixed;
  top: 0;
  right: 0;
  /* Above the floating "Probetraining" CTA button (z-index 9999) */
  z-index: 10000;
  width: 290px;
  max-width: 85vw;
  height: 100%;
  background: var(--kk-brand);
  color: #fff;
  padding: 72px 28px 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shadow only when open – otherwise it bleeds in at the right edge,
   because the closed drawer sits off-screen to the right. */
#kk-offcanvass.kk-awake {
  transform: translateX(0);
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.25);
}

#kk-offcanvass .kk-offcanvass-close {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  opacity: 0.85;
}
#kk-offcanvass .kk-offcanvass-close:hover {
  opacity: 1;
}

#kk-offcanvass ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

#kk-offcanvass ul li a {
  display: block;
  padding: 11px 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    color 0.12s ease,
    padding-left 0.12s ease;
}

#kk-offcanvass ul li a:hover {
  color: #fff;
  padding-left: 6px;
}
#kk-offcanvass ul li.active a {
  color: var(--kk-accent);
}

#kk-offcanvass .kk-lead {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 10px;
}

#kk-offcanvass .kk-social-icons a {
  display: inline-block;
  margin-right: 14px;
  color: #fff;
  font-size: 18px;
  opacity: 0.9;
}
#kk-offcanvass .kk-social-icons a:hover {
  opacity: 1;
}

/* ===================== Responsive ===================== */
@media (max-width: 1100px) {
  .kk-header-hours {
    display: none;
  }
}

@media (max-width: 991px) {
  .kk-nav {
    display: none;
  }
  .kk-site-header .kk-nav-toggle {
    display: block;
  }
  .kk-header-inner {
    gap: 12px;
    padding: 0 16px;
  }
  .kk-header-actions {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  :root {
    --kk-header-h: 62px;
  }
  .kk-brand-logo {
    height: 38px;
  }
  .kk-header-cta {
    padding: 8px 14px;
    font-size: 13px;
  }
}
