/* Shared fixed actions */
.upfold-floating-actions {
  position: fixed;
  inset: 0;
  z-index: 88;
  pointer-events: none;
}

.upfold-floating-actions a {
  pointer-events: auto;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.upfold-enquire-float,
.upfold-whatsapp-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.32);
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.upfold-enquire-float {
  top: 50%;
  right: 0;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(40, 199, 111, 0.5);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: #28c76f;
  color: #04180c;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.upfold-whatsapp-float {
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: #25d366;
  color: #fff;
}

.upfold-whatsapp-float svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.upfold-enquire-float:hover,
.upfold-enquire-float:focus-visible {
  background: #45dc86;
  box-shadow: 0 18px 50px rgba(40, 199, 111, 0.25);
  transform: translateY(-50%) translateX(-4px);
}

.upfold-whatsapp-float:hover,
.upfold-whatsapp-float:focus-visible {
  box-shadow: 0 18px 50px rgba(37, 211, 102, 0.3);
  transform: translateY(-4px) scale(1.04);
}

.upfold-enquire-float:focus-visible,
.upfold-whatsapp-float:focus-visible {
  outline: 3px solid #f7f8f5;
  outline-offset: 3px;
}

/* Correct the generated Next.js error fallback's low-contrast inline rules. */
body {
  background: #050706 !important;
  color: #f7f8f5 !important;
}

.next-error-h1 {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-right: 0 !important;
  color: #28c76f !important;
  font-family: inherit !important;
  font-size: clamp(5.5rem, 15vw, 10rem) !important;
  font-weight: 800 !important;
  line-height: 0.86 !important;
  letter-spacing: -0.06em !important;
}

.next-error-h1 + div {
  display: block !important;
  margin-top: 1.5rem !important;
}

.next-error-h1 + div h2 {
  margin: 0 !important;
  color: rgba(247, 248, 245, 0.78) !important;
  font-family: inherit !important;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem) !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

@media (max-width: 1023.98px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .upfold-enquire-float,
  .upfold-whatsapp-float {
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    height: 54px;
    transform: none;
  }

  .upfold-enquire-float {
    left: 12px;
    right: 80px;
    width: auto;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid rgba(40, 199, 111, 0.55);
    border-radius: 999px;
    font-size: 0.68rem;
  }

  .upfold-whatsapp-float {
    right: 12px;
    width: 56px;
    border-radius: 50%;
  }

  .upfold-enquire-float:hover,
  .upfold-enquire-float:focus-visible {
    transform: translateY(-2px);
  }

  .upfold-whatsapp-float:hover,
  .upfold-whatsapp-float:focus-visible {
    transform: translateY(-2px) scale(1.02);
  }

  .next-error-h1 {
    font-size: clamp(5rem, 28vw, 7rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .upfold-enquire-float,
  .upfold-whatsapp-float {
    transition: none;
  }
}

/* The floating actions sit above the full-screen mobile menu (z-index 88
   against the menu's 75), so they covered the menu's contact details. The
   site already marks the open state by putting `lenis-stopped` on <html>
   to lock scrolling, so reuse that rather than adding another flag. */
html.lenis-stopped .upfold-floating-actions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.upfold-floating-actions {
  transition: opacity 240ms ease, visibility 240ms ease;
}

/* The stagnation-to-scale passage is scrubbed against the height of its
   own runway. A phone viewport is short, so the same runway in `vh` gave
   far less scroll than on desktop and the two lines flew past. Lengthen
   the runway below `lg` only; the desktop pacing is untouched. */
@media (max-width: 1023.98px) {
  section[aria-label="From stagnation to scale"] > div:first-child {
    height: 360vh;
  }
}
