:root {
  --font: 'Roboto', sans-serif;
  --bodyfont: 'Roboto', sans-serif;
  --mobile_menu_width: 310px;
  --mobile_menu_move: -310px;
  --secondary-header-height: 33px;
}

body{
  width: 100vw!important;
  max-width: 100vw!important;
  overflow-x: hidden!important;
}

/* ======================================
   GENERAL
   ====================================== */
* {
  box-sizing: border-box;
}

li.header_primary > a {
  padding: 9px 13px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  display: inline-block !important;
}

a.fm_btn {
  background-color: #f5f5f5;
  padding: 9px 13px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  display: inline-block !important;
  margin-right: 5px !important;
}
a.fm_btn.fm_btn_yellow {
  background-color: #fbba00;
  color: white;
}
a.fm_btn.fm_btn_white {
  background-color: #fff;
  color: #005a77;
}
a.fm_btn.fm_btn_blue {
  background-color: #005a77;
  color: white;
}

/* Specifiek voor huidige menu-item */
li.header_primary.current-menu-item > a {
  color: var(--primary) !important;
}

/* ======================================
   HEADER DESKTOP
   ====================================== */
.fm_header_desktop_spacer {
  display: block;
  width: 100%;
  background-color: var(--primary);
  height: 120px;
}
.fm_header_wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 123px;
  background-color: white;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  z-index: 99999999;
}
.fm_header_secondary {
  width: 100%;
  background-color: var(--secondary);
  height: var(--secondary-header-height);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  /* border-bottom: 2px solid #D2E1F4; */
  align-content: center;
}
.fm_header_wrapper::after {
  content: "";
  background-color: var(--secondary);
  width: 100%;
  height: var(--secondary-header-height);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 0;
}
.fm_header_secondary_inner{
    height: var(--secondary-header-height)!important;
    padding: 0px!important;
    display: flex!important;
    justify-content: flex-end!important;
    flex-direction: row;
    align-content: center;
}
.fm_header_secondary_inner > div{
    height: 100%;
    
}
.fm_header_secondary_inner > span {
    color: white !important;
    font-family: var(--font);
    font-size: 18px;
    font-weight: 300;
}

/* Style for .fm_header_secondary_inner menu */
.fm_header_secondary_inner .menu {
    display: flex;
    gap: -2px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

.fm_header_secondary_inner .menu li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.fm_header_secondary_inner .menu li a {
    color: white !important;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}

.fm_header_secondary_inner .menu li a:hover,
.fm_header_secondary_inner .menu li a:focus {
    background: rgba(255,255,255,0.15);
    color: var(--gcid-vwuxcnix9v);
}
.fm_desktop,
.fm_header_secondary_inner {
  width: 80%;
  max-width: 1080px;
  display: flex;
  /* padding-top: 5px; */
  /* padding-bottom: 7px; */
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.fm_logo {
  grid-column: 1 / span 1;
  grid-row: 1 / span 2;
  width: 200px;
  height: 100%;
}
.fm_logo img {
  height: 100%;
  max-width: 150px;
  max-height: 100%;
  object-fit: contain;
}
div.fm_header_upper {
  grid-column: 2 / span 1;
  grid-row: 1 / span 1;
}
div.fm_header_lower {
  grid-column: 2 / span 1;
  grid-row: 2 / span 1;
}
div.fm_header_upper > div,
div.fm_header_lower > div {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
div.fm_header_upper > div > ul,
div.fm_header_lower > div > ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style-type: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  gap: 18px;
}
div.fm_header_upper > div > ul > li,
div.fm_header_lower > div > ul > li {
  display: inline-block;
  position: relative;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 1em;
}
div.fm_header_upper > div > ul > li > a,
div.fm_header_lower > div > ul > li > a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1em;
}
div.fm_header_upper > div > ul > li > a {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.fm_header_cta {
  color: var(--secondary)!important;
  color: white !important;
  /* padding: 9px 16px !important; */
  /* font-size: 14px !important; */
  /* font-weight: 800 !important; */
  /* display: inline-block !important; */
  /* margin-right: 5px !important; */
  /* border-radius: 20px; */
}
.fm_header_cta > a {
  color: var(--secondary)!important;
}

/* ======================================
   HEADER ON SCROLL
   ====================================== */
.fm_header_wrapper.fm_header_scroll {
  height: 75px;
}
.fm_header_wrapper.fm_header_scroll > .fm_desktop {
  grid-template-rows: 1fr;
}
.fm_header_wrapper.fm_header_scroll > .fm_desktop > .fm_header_upper {
  display: none;
}
.fm_header_wrapper.fm_header_scroll > .fm_desktop > .fm_header_lower {
  grid-row: 1 / span 1;
}
.fm_header_wrapper.fm_header_scroll > .fm_desktop > .fm_header_lower > .menu-primary-container ul li > a {
  color: var(--primary);
}
.fm_header_wrapper.fm_header_scroll > .fm_desktop > .fm_header_lower > .menu-primary-container ul li.header_primary > a {
  background-color: var(--accent);
  color: white !important;
}
.fm_header_wrapper.fm_header_scroll .fm_logo img {
  width: 69px;
  display: block;
}
.fm_header_wrapper > .fm_desktop > .fm_logo > img.fm_logo_dark {
  display: none;
}
.fm_header_wrapper.fm_header_scroll > .fm_desktop > .fm_logo > img.fm_logo_dark,
.fm_header_wrapper.fm_header_scroll > .fm_mobile_header > .fm_logo > img.fm_logo_dark {
  display: block;
  padding: 5px;
}
.fm_header_wrapper.fm_header_scroll > .fm_header_secondary {
  display: none;
}

/* ======================================
   SUB-MENU (desktop)
   ====================================== */

/* Chevron indicator on parent items */
div.fm_header_upper > div > ul > li.menu-item-has-children > a::after,
div.fm_header_lower > div > ul > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 7px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}
div.fm_header_upper > div > ul > li.menu-item-has-children:hover > a::after,
div.fm_header_lower > div > ul > li.menu-item-has-children:hover > a::after {
  transform: rotate(-135deg) translateY(-2px);
}

/* Dropdown panel */
ul.sub-menu {
  list-style: none !important;
  padding: 8px !important;
  margin: 0 !important;
  background-color: white;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 6px;
  min-width: 210px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.07);
}
ul.sub-menu > li {
  border-bottom: 1px solid #efefef;
  padding-bottom: 0;
}
ul.sub-menu > li:last-child {
  border-bottom: none;
}
ul.sub-menu > li > a {
  display: block;
  padding: 9px 12px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: white;
  text-decoration: none;
  border-radius: 0px;
  white-space: unset;
  transition: background 0.15s ease, color 0.15s ease;
}
ul.sub-menu > li > a:hover {
  background-color: #f5f5f5;
  color: var(--secondary) !important;
}

/* Desktop: smooth visibility toggle (scoped to .fm_desktop to avoid mobile) */
.fm_desktop .menu-item > ul {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  display: flex !important;
}
.fm_desktop .menu-item:hover > ul {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ======================================
   MOBILE MENU
   ====================================== */
.fm_mobile {
  display: none;
}
body.fm_menu_lock {
  overflow: hidden;
}
.fm_mobile_menu {
  width: var(--mobile_menu_width);
  background-color: var(--text);
  position: fixed;
  z-index: 99999999999;
  height: 100%;
  top: 0;
  right: 0;
  overflow-y: auto;
  transform: translateX(var(--mobile_menu_width));
  display: flex;
  flex-direction: column;
}
.fm_mobile_menu::after{
  content: "";
  width: 100%!important;
  height: 50%;
  bottom: 0px;
  left: 0px;
  position:Absolute;
  /* border : 1px solid red; */
  background-image: url("/wp-content/uploads/2026/03/watermerk-full-scaled.webp");
  background-size: contain;
  background-position:Center;
  opacity: 1;
}
.fm_mobile_menu.fm_mobile_menu_open {
  padding: 13px 11px 40px;
  box-sizing: border-box;
  gap: 0px;
  transform: translateX(0);
}

/* Menu header: logo + close button */
.fm_mobile_menu_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
}
.fm_mobile_menu_header .fm_logo {
  width: 140px;
  cursor: pointer;
}
.fm_mobile_menu_header .fm_logo img {
  width: 100%;
  height: auto;
  display: block;
}
.fm_mobile_menu_close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: white;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  line-height: 0;
  flex-shrink: 0;
}
.fm_mobile_menu_close:hover {
  opacity: 1;
}

/* ======================================
   MOBILE MENU â€” SLIDING PANELS
   ====================================== */

/* Viewport clips horizontal overflow; fills remaining drawer height */
.fm_menu_viewport {
  overflow: hidden;
  flex: 1;
  /* allow panels taller than the drawer to scroll via the drawer itself */
}

/* Slider row â€” panels sit side-by-side */
.fm_menu_slider {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  transition: transform 360ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Individual panel */
.fm_menu_panel {
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Sub-panel back button */
.fm_submenu_back {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0px 0px 8px 0;
  margin-bottom: 0px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
  color: white;
  text-align: left;
}
.fm_submenu_back svg {
  flex-shrink: 0;
  stroke: white;
}
.fm_submenu_back:hover {
  opacity: 0.75;
}

/* "Bekijk alle X" item inside sub-panel */
.fm_submenu_view_all > a {
  display: block;
  padding: 14px 4px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: white !important;
  opacity: 0.6;
  border-bottom: none;
  margin-bottom: 0;
  text-decoration: none;
}

/* Top-level nav list â€” ul itself has class .menu in the new WP menu markup */
.fm_mobile_menu ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.fm_mobile_menu ul.menu > li {
  padding: 0;
  border-bottom: none;
}
.fm_mobile_menu ul.menu > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  font-family: var(--font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease, padding-left 0.2s ease;
}
.fm_mobile_menu ul.menu > li > a:hover {
  opacity: 0.7;
  padding-left: 8px;
}
.fm_mobile_menu ul.menu > li.current_page_item > a {
  opacity: 1;
  padding-left: 20px;
}

/* Right-arrow on items that open a sub-panel */
.fm_mobile_menu ul.menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(-45deg);
  margin-right: 2px;
  flex-shrink: 0;
}

/* Sub-menu: hide when still inside a li (before JS moves it to a panel) */
.fm_mobile_menu li .sub-menu {
  display: none !important;
}

/* Sub-menu: visible once JS moves it into a sub-panel */
.fm_menu_panel_sub .sub-menu {
  display: flex !important;
  flex-direction: column;
  list-style: none;
  padding: 0 !important;
  margin: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  gap: 0;
}
.fm_menu_panel_sub .sub-menu > li {
  padding: 0;
  border-bottom: none;
}
.fm_menu_panel_sub .sub-menu > li > a {
  display: flex;
  align-items: center;
  padding: 10px 4px;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  color: white!important;
  text-decoration: none;
  transition: opacity 0.2s ease, padding-left 0.2s ease;
  word-break: break-word;
}
.fm_menu_panel_sub .sub-menu > li > a:hover {
  opacity: 0.7;
  padding-left: 8px;
}

/* Hitarea en transities voor mobile */
.fm_mobile_hitarea,
.fm_mobile_menu,
.fm_ease_page {
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 400ms ease;
}
.fm_mobile_hitarea {
  display: block;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999998;
  background-color: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background-color 400ms ease;
}
.fm_mobile_hitarea.fm_mobile_hitarea_open {
  background-color: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}
.fm_move_page {
  transform: translateX(var(--mobile_menu_move));
}
.fm_mobile_menu_open {
  transform: translateX(0);
}

ul > li.fm_header_cta.current-menu-item > a{
    color: white!important;
}
.fm_mobile_btn > img {
    width: 34px;
}

.fm_logo.fm_mobilemenu_logo > img {
    width: 190px;
}




.fm_mobile_menu::after{
  content: "";
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 230px;
  height: 100%;
  background-image: url(http://fysio.local/wp-content/uploads/2026/03/watermerk-full-scaled.webp);
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  background-position: bottom left;
  /* filter: saturate(0.5); */
  /* mix-blend-mode: multiply; */
}
.fm_mobile_menu > *{
  z-index: 99999!important;
}


/* ======================================
   MOBILE HEADER (<= 900px)
   ====================================== */
@media screen and (max-width: 900px) {
  .fm_desktop {
    display: none;
  }
  .fm_mobile {
    display: flex !important;
    width: 80% !important;
    height: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .fm_header_secondary {
    display: none !important;
  }
  .fm_header_desktop_spacer {
    height: 70px;
  }
  .fm_header_wrapper {
    height: 70px;
  }
  .fm_mobile > * {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
  }
  .fm_mobile_header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0;
  }
  .fm_mobile > .fm_logo {
    width: 160px;
    height: 100%;
    padding: 10px 0;
  }
  /* Slider controls uitschakelen in mobile */
  .fm_slider_controlls {
    display: none !important;
  }
  .fm_header_wrapper.fm_header_scroll > .fm_mobile_header > .fm_mobile_btn {
    background-color: var(--accent);
    height: 37px;
    width: 37px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  /* Full-width menu on phones */
  .fm_mobile_menu {
    width: min(var(--mobile_menu_width), 85vw);
    transform: translateX(min(var(--mobile_menu_width), 85vw));
  }
  .fm_header_wrapper::after{
    display: none;
  }
  .fm_mobile_menu .current_page_item {
    position: relative;
  }
  .fm_mobile_menu .current_page_item::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-55%);
    width: 4px;
    height: 24px;
    background-color: var(--orange);
  }
  .fm_logo img{
    max-width: 180px;
}
}

/* ======================================
   LAYOUT FIX (tussen 900-920px)
   ====================================== */
@media screen and (max-width: 920px) {
  .fm_desktop {
    grid-template-columns: 200px 1fr;
  }
}

.current_page_item > a {
  color: var(--secondary)!important;
}

.fm_logo > img{
  cursor: pointer!important;
}


li.fm_header_cta.menu-item.menu-item-type-post_type.menu-item-object-page.current-menu-item.page_item.page-item-46.current_page_item.menu-item-55 > a{
    color: var(--secondary)!important;
}

ul.sub-menu > li > a{
  color: var(--text) !important;
  font-size: 15px!important;
}