/* ================================================================
   Café Tranquillo — floating contact dock styles
   Appended to the main site stylesheet. Uses the existing brand
   tokens (--green-900, --gold, --cream-50).
   ================================================================ */

.trq-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.trq-dock-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  position: relative;
  text-decoration: none;
}

.trq-dock-btn svg { width: 26px; height: 26px; display: block; }

.trq-dock-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

/* Tooltip label */
.trq-dock-label {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--green-900, #22301f);
  color: var(--cream-50, #faf6ec);
  font-family: var(--sans, "Jost", system-ui, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.trq-dock-btn:hover .trq-dock-label { opacity: 1; }

.trq-dock-wa   { background: #25d366; color: #fff; }
.trq-dock-call { background: var(--green-800, #31452c); color: var(--cream-50, #faf6ec); }
.trq-dock-ig   { background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%); color: #fff; }
.trq-dock-map  { background: var(--gold, #b99a5b); color: var(--green-900, #22301f); }

/* Reserve pill */
.trq-dock-reserve {
  display: none;
  background: var(--green-800, #31452c);
  color: var(--cream-50, #faf6ec);
  font-family: var(--sans, "Jost", system-ui, sans-serif);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.trq-dock-reserve:hover { background: var(--green-700, #3e5a38); }

/* ---------- Mobile ----------
   On phones the dock becomes a single sticky bottom bar:
   [ Reserve a table ] [ WhatsApp ] [ Call ]
   Instagram and Directions stay in the footer and nav, so the
   bar never covers more than a sliver of the page.
------------------------------------------------- */
@media (max-width: 640px) {
  .trq-dock {
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(34, 48, 31, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.22);
  }
  .trq-dock-btn { width: 46px; height: 46px; flex: 0 0 auto; }
  .trq-dock-btn svg { width: 23px; height: 23px; }
  .trq-dock-label { display: none; }

  .trq-dock-ig,
  .trq-dock-map { display: none; }

  .trq-dock-reserve {
    display: block;
    flex: 1 1 auto;
    order: 0;
    margin: 0;
    text-align: center;
    padding: 14px 12px;
    background: var(--green-700, #3e5a38);
    border-radius: 40px;
  }
  .trq-dock-reserve:hover { background: var(--green-600, #4f6b47); }

  /* Lift the page content clear of the bar */
  body { padding-bottom: 62px; }
}

/* Very small screens: keep the reserve label short */
@media (max-width: 380px) {
  .trq-dock-reserve { font-size: 0.68rem; letter-spacing: 0.08em; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .trq-dock-btn,
  .trq-dock-label { transition: none; }
}
