/* FlowingMenu — vanilla port of the React Bits component.
   Colours are driven by CSS variables set from JS (see flowing-menu.js);
   the fallbacks below match the Rooms & Residences palette. */
.fm-wrap {
  --fm-bg: #15120E;
  --fm-text: #F4EFE6;
  --fm-marquee-bg: #A8895B;
  --fm-marquee-text: #15120E;
  --fm-border: rgba(244, 239, 230, 0.15);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--fm-bg);
}
.fm-menu {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
}
.fm-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 -1px var(--fm-border);
}
.fm-item:first-child { box-shadow: none; }
.fm-item__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--fm-text);
  font-size: clamp(1.5rem, 4vh, 3rem);
  transition: color .2s ease;
}
.fm-item__link:focus:not(:focus-visible) { color: var(--fm-text); }

/* Marquee overlay — starts hidden below the item, slides in on hover. */
.fm-marquee {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  pointer-events: none;
  background: var(--fm-marquee-bg);
  transform: translateY(101%);
}
.fm-marquee__wrap {
  height: 100%;
  width: 100%;
  transform: translateY(-101%);
}
.fm-marquee__inner {
  height: 100%;
  width: max-content;
  display: flex;
  align-items: center;
  position: relative;
  will-change: transform;
}
.fm-marquee__text {
  color: var(--fm-marquee-text);
  white-space: nowrap;
  text-transform: uppercase;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 4vh, 3rem);
  line-height: 1.2;
  padding: 1vh 1vw 0;
}
.fm-marquee__img {
  width: 200px;
  height: 7vh;
  min-height: 56px;
  margin: 2em 2vw;
  border-radius: 50px;
  background-size: cover;
  background-position: 50% 50%;
}

@media (prefers-reduced-motion: reduce) {
  .fm-marquee__inner { animation: none; }
}
