/* Compact navigation: five fixed touch targets, no horizontal scrolling. */
.quick-nav {
  position: static;
  display: block;
  padding: 10px 4.7%;
  background: #031321;
  color: #d5c4ac;
  border-bottom: 1px solid #c88a3c20;
}
.quick-nav .container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  overflow: visible;
  margin: 0 auto;
  padding: 5px;
  border: 1px solid #c88a3c32;
  border-radius: 18px;
  background: linear-gradient(145deg, #142b3be6, #071623);
  box-shadow:
    inset 0 1px 0 #ffffff08,
    0 6px 20px #00000020;
}
.quick-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #d9d5cf;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: normal;
  text-align: center;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.quick-nav a .icon {
  width: 19px;
  height: 19px;
  color: #d7a25b;
}
.quick-nav a:hover {
  color: #ffdfa3;
  background: #c88a3c14;
}
.quick-nav a[aria-current] {
  color: #f4cd92;
  background: #c88a3c17;
  border-color: #c88a3c38;
}
.quick-nav a::after {
  content: none;
}
.quick-nav a:last-child {
  color: #ffe1b5;
  background: linear-gradient(140deg, #8c602d45, #c88a3c20);
  border-color: #c88a3c55;
}
.quick-nav .nav-compact {
  display: none;
}
@media (max-width: 850px) {
  .quick-nav {
    position: fixed;
    z-index: 40;
    inset: auto 6px calc(3px + env(safe-area-inset-bottom));
    display: block;
    padding: 0;
    width: auto;
    border: 0;
    border-radius: 18px;
    background: transparent;
  }
  .quick-nav .container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
    max-width: 510px;
    margin: 0 auto;
    min-height: 66px;
    padding: 4px;
    border-radius: 18px;
    border-color: #d5a15b55;
    background: linear-gradient(140deg, #102839f5, #031321f5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
      0 12px 40px #0005,
      0 2px 8px #0003,
      inset 0 1px 0 #fff1;
  }
  .quick-nav a {
    flex-direction: column;
    gap: 3px;
    padding: 6px 2px;
    min-height: 54px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.25;
    border-radius: 16px;
    overflow-wrap: anywhere;
  }
  .quick-nav a .icon {
    width: 22px;
    height: 22px;
  }
  .quick-nav .nav-full {
    display: none;
  }
  .quick-nav .nav-compact {
    display: block;
  }
  .mobile-contact {
    display: none;
  }
  .floating-wa {
    display: grid;
    place-items: center;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(
      var(--mobile-dock-height, 66px) + 14px + env(safe-area-inset-bottom)
    );
    width: 52px;
    height: 52px;
    z-index: 41;
    color: #ffffff;
    background: linear-gradient(145deg, #19775c, #0b4a3a);
    border: 1px solid #bfa275;
    box-shadow:
      0 6px 22px #001b2855,
      inset 0 1px 0 #ffffff25;
  }
  .floating-wa:hover {
    background: #198366;
  }
  .floating-wa .icon {
    width: 28px;
    height: 28px;
  }
  footer {
    padding-bottom: calc(
      var(--mobile-dock-height, 66px) + 28px + env(safe-area-inset-bottom)
    );
  }
  #connection-status {
    bottom: calc(
      var(--mobile-dock-height, 66px) + 78px + env(safe-area-inset-bottom)
    );
  }
}
@media (prefers-reduced-motion: reduce) {
  .quick-nav a {
    transition: none;
  }
}

.floating-wa { background: #128c7e; color: #fff; border: 1px solid #ffffff40; }
.floating-wa:hover { background: #075e54; }
.floating-wa .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; }
