/* =========================================================
   FLOATING WHATSAPP BUTTON  (HTML: <a class="wa-float">)
   Har page par us company ka number. No JS.
   ========================================================= */

.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1.15rem .8rem .85rem;
  border-radius: 999px;
  background: #25d366; color: #fff;
  font-weight: 600; font-size: .9rem;
  box-shadow: 0 16px 36px -12px rgba(37, 211, 102, .65);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px rgba(37, 211, 102, .75); }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 600px) {
  .wa-float { padding: .85rem; right: 1rem; bottom: 1rem; }
  .wa-float span { display: none; }
}

/* =========================================================
   QUICK BAR  (HTML: <div class="qbar"> — company pages only, built by quick_bar() in build/parts.py)
   Slides up after the hero (body.is-scrolled) and hides over the footer (body.at-footer).
   Colour follows the page theme (--accent). Replaces the WhatsApp float while visible.
   ========================================================= */
.qbar {
  position: fixed; left: 50%; bottom: 1.1rem; z-index: 60;
  display: flex; align-items: center; gap: .45rem; padding: .45rem .45rem .45rem .55rem;
  background: rgba(15, 15, 18, .86); color: #fff; border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  transform: translate(-50%, 140%); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), opacity .3s, visibility .3s;
}
body.is-scrolled .qbar { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
body.at-footer .qbar { transform: translate(-50%, 140%); opacity: 0; visibility: hidden; }
.qbar__id { display: flex; align-items: center; gap: .6rem; padding-right: .7rem; margin-right: .1rem; border-right: 1px solid rgba(255, 255, 255, .12); }
.qbar__id img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.qbar__id b { display: block; font-family: var(--font-display); font-size: .92rem; line-height: 1.2; white-space: nowrap; }
.qbar__id small { display: block; font-size: .72rem; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.qbar__btn {
  position: relative; display: inline-flex; align-items: center; gap: .45rem; height: 42px; padding: 0 1rem;
  border-radius: 999px; border: 0; background: rgba(255, 255, 255, .08); color: #fff;
  font: 600 .85rem/1 var(--font-body); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background .25s, transform .25s var(--ease);
}
.qbar__btn:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.qbar__btn svg { width: 17px; height: 17px; flex: none; }
.qbar__btn--wa svg { fill: currentColor; }
.qbar__btn--wa:hover { background: #25d366; }
.qbar__btn--main { background: var(--accent); }
.qbar__btn--main:hover { background: var(--accent); filter: brightness(1.1); }
.qbar .tool__badge { position: static; margin-left: .1rem; }
.qbar .tool__badge:not(.is-on) { display: none; }
/* while the bar is up, the WhatsApp float is redundant and the back-to-top button moves above the bar */
body.has-qbar.is-scrolled:not(.at-footer) .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }
body.has-qbar.is-scrolled:not(.at-footer) .to-top { bottom: 6rem; }
html[data-theme="dark"] .qbar { background: rgba(30, 30, 36, .9); }

@media (max-width: 760px) {
  .qbar { left: 0; right: 0; bottom: 0; transform: translateY(110%); border-radius: 18px 18px 0 0; padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom)); gap: .4rem; }
  body.is-scrolled .qbar { transform: none; }
  body.at-footer .qbar { transform: translateY(110%); }
  .qbar__id { display: none; }
  .qbar__btn { flex: 1; justify-content: center; padding: 0 .5rem; height: 46px; font-size: .8rem; }
  .qbar__btn--tel span { display: none; }   /* phone: icon only, number is long */
  .qbar__btn--tel { flex: 0 0 52px; }
  body.has-qbar.is-scrolled:not(.at-footer) .to-top { bottom: 5rem; }
}
[dir="rtl"] .qbar__id { padding-right: 0; padding-left: .7rem; margin-right: 0; margin-left: .1rem; border-right: 0; border-left: 1px solid rgba(255, 255, 255, .12); }
[dir="rtl"] .qbar__btn--tel span { direction: ltr; unicode-bidi: isolate; }
