/* Web Solutions – app-style bottom navigation (phones + tablets)
   Pill bar, equal gap on left / right / bottom, and a gradient "bubble" that
   travels to the tapped item (same behaviour as the Maxx Chair app nav). */
@media (max-width: 1024px) {
  :root { --ws-nav-gap: 14px; --ws-nav-h: 64px; }

  #ws-mobile-nav.ws-mobile-nav-wrapper {
    position: fixed !important;
    left: var(--ws-nav-gap) !important;
    right: var(--ws-nav-gap) !important;
    bottom: var(--ws-nav-gap) !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    height: var(--ws-nav-h) !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--ws-nav-radius, 15px) !important;
    filter: none !important;               /* the shadow lives on the bar shape only, so the bubble glide stays smooth */
    -webkit-filter: none !important;
  }
  #ws-mobile-nav .ws-mobile-nav-bg {
    filter: drop-shadow(0 10px 25px rgba(174, 174, 192, 0.45)) drop-shadow(0 -3px 10px rgba(255, 255, 255, 0.85)) !important;
  }
  /* keep the page content clear of the floating bar (gap + bar + gap) */
  body { padding-bottom: calc(var(--ws-nav-h) + var(--ws-nav-gap) * 2) !important; }

  /* old notched path is replaced by #ws-appnav-path */
  #ws-mobile-nav #ws-mobile-nav-path { display: none !important; }

  #ws-mobile-nav .ws-mobile-nav-items { padding: 0 6px !important; gap: 0 !important; justify-content: space-between !important; }
  #ws-mobile-nav .ws-mobile-nav-item { flex: 1 1 0 !important; min-width: 0 !important; margin: 0 !important; padding: 6px 0 !important; position: relative; }
  #ws-mobile-nav .ws-mobile-nav-label { white-space: nowrap; font-size: 10.5px !important; transition: color .3s ease !important; }
  #ws-mobile-nav .ws-mobile-nav-item svg { transition: none !important; }

  /* the old "active" look is neutralised – the bubble shows the active item now */
  #ws-mobile-nav .ws-mobile-nav-item.active:not(.is-active):not(.ws-mobile-nav-menu-trigger),
  #ws-mobile-nav .ws-mobile-nav-item:active:not(.is-active):not(.ws-mobile-nav-menu-trigger) {
    color: #555555 !important; transform: none !important;
  }
  #ws-mobile-nav .ws-mobile-nav-item.active:not(.is-active):not(.ws-mobile-nav-menu-trigger) svg,
  #ws-mobile-nav .ws-mobile-nav-item.active:not(.is-active):not(.ws-mobile-nav-menu-trigger) svg * {
    stroke: currentColor !important;
  }
  #ws-mobile-nav .ws-mobile-nav-item.active:not(.is-active):not(.ws-mobile-nav-menu-trigger) .ws-mobile-nav-label {
    background: none !important; -webkit-text-fill-color: currentColor !important; color: #555555 !important; text-shadow: 1px 1px 1px #ffffff, -1px -1px 1px rgba(174, 174, 192, 0.35) !important;
  }

  /* active item: icon hides (the bubble carries it), label turns orange */
  #ws-mobile-nav .ws-mobile-nav-item.is-active { transform: none !important; }
  #ws-mobile-nav .ws-mobile-nav-item.is-active svg,
  #ws-mobile-nav .ws-mobile-nav-item.is-active img,
  #ws-mobile-nav .ws-mobile-nav-item.is-active .ws-custom-svg-icon { opacity: 0 !important; }
  #ws-mobile-nav .ws-mobile-nav-item.is-active .ws-mobile-nav-label,
  #ws-mobile-nav .ws-mobile-nav-menu-trigger.active .ws-mobile-nav-label {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #ea580c 100%) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important; color: #ea580c !important; text-shadow: none !important;
  }
  #ws-mobile-nav .ws-mobile-nav-menu-trigger.active { transform: none !important; color: #ea580c !important; }
  #ws-mobile-nav .ws-mobile-nav-menu-trigger.active svg,
  #ws-mobile-nav .ws-mobile-nav-menu-trigger.active svg * { stroke: #ea580c !important; }

  /* the travelling bubble */
  #ws-appnav-bubble {
    position: absolute; z-index: 3; left: 0; top: -19px; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; pointer-events: none; opacity: 0;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #ea580c 100%);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45), 0 2px 6px rgba(234, 88, 12, 0.35);
    transition: opacity .3s ease; will-change: transform; backface-visibility: hidden;
  }
  #ws-appnav-bubble svg, #ws-appnav-bubble img, #ws-appnav-bubble .ws-custom-svg-icon {
    width: 26px; height: 26px; max-width: 26px; max-height: 26px; flex: none; display: block;
    stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: none; opacity: 1;
  }

  /* quick-nav popup sits the same distance above the bar */
  #ws-mobile-nav-popup.ws-mobile-nav-popup {
    left: var(--ws-nav-gap) !important; right: var(--ws-nav-gap) !important; width: auto !important; max-width: none !important;
    bottom: calc(var(--ws-nav-h) + var(--ws-nav-gap) + 12px) !important;
  }
}
/* which items show on which device (same on every page) */
@media (max-width: 767px) {
  #ws-mobile-nav .ws-nav-item-portfolio-left, #ws-mobile-nav .ws-nav-item-reviews, #ws-mobile-nav .ws-nav-item-contact { display: none !important; }
  #ws-mobile-nav .ws-nav-item-portfolio-mobile { display: flex !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  #ws-mobile-nav .ws-nav-item-portfolio-mobile { display: none !important; }
  #ws-mobile-nav .ws-nav-item-portfolio-left, #ws-mobile-nav .ws-nav-item-reviews, #ws-mobile-nav .ws-nav-item-contact { display: flex !important; }
}
@media (prefers-reduced-motion: reduce) { #ws-appnav-bubble { transition: none; } }

/* ==========================================================================
   Layout fixes
   ========================================================================== */
/* Home: the gap under the image carousel equals every other section gap (20px) */
.ws-element-334fc6a9 > .ws-inner-container { padding-bottom: 0 !important; }

/* Contact form (phones): budget currency dropdown + budget field match the other fields (15px) */
@media (max-width: 767px) {
  html body #contact#contact .ws-budget-currency-group select#form-field-currency.ws-currency-select,
  html body #contact#contact .ws-budget-currency-group select.ws-currency-select,
  html body #contact#contact .ws-budget-currency-group input.ws-budget-input,
  html body .ws-budget-currency-group select.ws-currency-select.ws-currency-select.ws-currency-select,
  html body .ws-budget-currency-group input.ws-budget-input.ws-budget-input.ws-budget-input {
    font-size: 15px !important;
  }
}

/* ==========================================================================
   Stacking: the build cursors / aura always travel UNDER the app nav
   ========================================================================== */
@media (max-width: 1024px) {
  #ws-mobile-nav.ws-mobile-nav-wrapper { z-index: 2147483646 !important; }
  #ws-mobile-nav-popup.ws-mobile-nav-popup { z-index: 2147483645 !important; }
  #ws-mobile-nav-backdrop.ws-mobile-nav-backdrop { z-index: 2147483644 !important; }
}

/* ==========================================================================
   Page changes: header + app nav stay put (same element, same place), only the page behind them changes
   ========================================================================== */
@view-transition { navigation: auto; }
header.ws-header-area { view-transition-name: ws-header; }
@media (max-width: 1024px) { #ws-mobile-nav { view-transition-name: ws-appnav; } }
::view-transition-group(ws-header), ::view-transition-group(ws-appnav) { animation: none; }
::view-transition-old(ws-header), ::view-transition-old(ws-appnav) { display: none; }
::view-transition-new(ws-header), ::view-transition-new(ws-appnav) { animation: none; }
::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: ws-vt-in .2s cubic-bezier(.22,.61,.36,1) both; mix-blend-mode: normal; }
@keyframes ws-vt-out { to { opacity: 0; } }
@keyframes ws-vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* second and later pages open instantly: the site's own entrance animations are off */
html.ws-instant .ws-reveal { opacity: 1 !important; transition: none !important; animation: none !important; }
html.ws-instant .ws-hero-animate-1, html.ws-instant .ws-hero-animate-2, html.ws-instant .ws-hero-animate-3, html.ws-instant .ws-hero-animate-4 { animation: none !important; }

/* Nuxt build: icons are wrapped in a span */
.ws-mobile-nav-item .ws-appnav-ico { display: flex; align-items: center; justify-content: center; line-height: 0; }
