/* ═══════════════════════════════════════════════════════════
   TUNEX — ANIMATED DOCK
   macOS-style magnifying dock, used as a section jumper.

   Why not on the top nav: that bar is already packed edge to
   edge at 1280px (zero gap between logo, links and CTAs), so
   magnifying its links would either overlap them or overflow
   the bar. A dock also wants icons, and "Store Optimisation"
   vs "Amazon PPC" are not distinguishable as icons — dropping
   the text labels would cost both usability and SEO.

   So the dock lives where a dock belongs: floating, on the
   left edge. Bottom is taken by the sticky CTA bar and
   bottom-right by the WhatsApp button.
   ═══════════════════════════════════════════════════════════ */

.dock {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 100px;
  background: rgba(12, 12, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease-out);
}
/* only appears once the reader is past the hero */
.dock.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.dock-item {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  /* JS writes --s; scaling from the left edge keeps the pill's left border
     still while the icons bulge toward the page */
  transform: scale(var(--s, 1));
  transform-origin: left center;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.dock-item i {
  font-size: 19px;
}
.dock-item:hover,
.dock-item.is-active {
  color: #fff;
  background: rgba(196, 30, 58, 0.9);
}
.dock-item:focus-visible {
  outline: 2px solid var(--r);
  outline-offset: 3px;
}

/* label slides out of the pill on hover */
.dock-label {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  white-space: nowrap;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease-out);
}
.dock-item:hover .dock-label,
.dock-item:focus-visible .dock-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* The dock is a convenience, not the navigation — below the desktop
   breakpoint the top nav and the sticky CTA already cover the same jobs,
   and screen edges are too crowded to spare. */
@media (max-width: 1100px) {
  .dock {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock,
  .dock-item,
  .dock-label {
    transition: none;
  }
  .dock-item {
    transform: none;
  }
}
