/* Only the homepage uses the integrated hero header. */
#main:has(.fit-hero-header) .framer-11hb6jp-container { display: none !important; }
.fit-hero-header {
  position: absolute;
  inset: 24px 28px auto;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  font: 500 14px/1.4 "General Sans", "General Sans Placeholder", sans-serif;
  color: white;
}
.fit-hero-brand { justify-self: start; }
.fit-hero-brand img { display: block; width: min(200px, 15vw); height: 42px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.fit-hero-header :is(a, button, summary) { color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.fit-hero-header :is(nav, .fit-header-book, .fit-menu-toggle) {
  border: 0;
  box-shadow: none;
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#hero-navigation,
.fit-hero-header .fit-menu-toggle { background-color: rgb(255 255 255 / .14); }
#hero-navigation { display: flex; align-items: center; gap: 2px; padding: 6px 10px; }
#hero-navigation > a, #hero-navigation summary {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px;
  border-radius: 999px; background: transparent; color: #fff;
  transition: background-color .2s ease;
}

#hero-navigation details { position: relative; }
#hero-navigation summary { list-style: none; }
#hero-navigation summary::-webkit-details-marker { display: none; }
.fit-menu-services { position: absolute; top: calc(100% + 6px); left: 0; padding: 8px; border-radius: 16px; width: max-content; background: rgb(15 23 42 / .35); color: #fff; border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 40px rgb(0 0 0 / .18); }
.fit-menu-services a { display: block; padding: 8px 12px; border-radius: 8px; }
.fit-hero-header .fit-header-book {
  justify-self: end; display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 20px; white-space: nowrap;
  background: rgb(255 255 255 / .16); color: white; transition: background-color .25s ease;
}
.fit-header-book > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: white; color: #0f172a; }
.fit-header-book svg { display: block; transition: transform .25s ease; }
@media (hover: hover) {
  #hero-navigation > a:hover, #hero-navigation summary:hover { background-color: rgb(255 255 255 / .16); }
  .fit-hero-header .fit-header-book:hover { background-color: rgb(255 255 255 / .28); }
  .fit-header-book:hover svg { transform: translateX(2px); }
  .fit-menu-services a:hover { background-color: rgb(255 255 255 / .16); }
}
.fit-hero-header :is(a, button, summary):focus-visible { outline: none; text-decoration: underline; text-underline-offset: 3px; }
.fit-hero-header .fit-menu-toggle,
.fit-menu-booking { display: none; }

@media (max-width: 1199.98px) {
  .fit-hero-header {
    inset: 18px clamp(14px, 3vw, 32px) auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .fit-hero-brand { width: min(100%, 260px); }
  .fit-hero-brand img { width: 100%; height: auto; }
  .fit-hero-header .fit-menu-toggle {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
  }
  .fit-hero-header .fit-menu-toggle:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 3px;
  }
  .fit-menu-icon path { transform-origin: center; transition: transform .2s ease, opacity .15s ease; }
  .fit-menu-toggle[aria-expanded="true"] path:first-child { transform: rotate(45deg) translateY(5px); }
  .fit-menu-toggle[aria-expanded="true"] path:nth-child(2) { opacity: 0; }
  .fit-menu-toggle[aria-expanded="true"] path:last-child { transform: rotate(-45deg) translateY(-5px); }

  #hero-navigation {
    position: absolute;
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    top: calc(100% + 10px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 340px);
    gap: 3px;
    padding: 12px;
    border-radius: 20px;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .fit-menu-toggle[aria-expanded="true"] + #hero-navigation {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  #hero-navigation {
    box-sizing: border-box;
    max-height: calc(100svh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #hero-navigation :is(a, summary) {
    box-sizing: border-box;
    min-height: 44px;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgb(15 23 42 / .7);
  }
  #hero-navigation > a, #hero-navigation summary { border-radius: 10px; font-size: 16px; }
  #hero-navigation summary { justify-content: space-between; }
  #hero-navigation details[open] summary span { transform: rotate(180deg); }
  .fit-menu-services {
    position: static;
    box-sizing: border-box;
    width: 100%;
    margin-top: 3px;
    padding: 3px 12px;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgb(255 255 255 / .07);
  }
  .fit-menu-booking {
    display: block;
    border-top: 1px solid rgb(255 255 255 / .15);
    margin-top: 8px;
    padding: 12px 4px 4px;
  }
  #hero-navigation .fit-menu-book {
    --action-fill: rgb(255 255 255 / .18);
    --action-filter: blur(16px);
    width: 100%;
  }
}

@media (max-width: 767px) {
  #hero-navigation { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #hero-navigation, .fit-menu-icon path, .fit-hero-header .fit-menu-toggle { transition: none; }
}
