/* ======================================================
   Sticky Contact Bar – Frontend Styles
   ====================================================== */

/* ── Bar Container ── */
#scb-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  width: 100%;
  /* height & colors injected via inline style */
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              opacity  .35s ease;
  will-change: transform, opacity;
}

/* ── Animations ── */
#scb-sticky-bar.scb-bar--anim-slide {
  transform: translateY(100%);
  opacity: 1;
}
#scb-sticky-bar.scb-bar--anim-fade {
  transform: translateY(0);
  opacity: 0;
}
#scb-sticky-bar.scb-bar--visible {
  transform: translateY(0);
  opacity: 1;
}
#scb-sticky-bar.scb-bar--hidden {
  transform: translateY(100%);
}

/* ── Buttons ── */
.scb-bar__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  padding: 6px 4px;
  position: relative;
  transition: background-color .18s, transform .15s;
  outline: none;
  /* Separator */
  border-right: 1px solid rgba(255,255,255,.12);
}
.scb-bar__btn:last-child { border-right: none; }

/* Hover/active state */
.scb-bar__btn:hover,
.scb-bar__btn:focus-visible {
  background-color: rgba(0,0,0,.12) !important;
}
.scb-bar__btn:active {
  transform: scale(.94);
}

/* Ripple on click */
.scb-bar__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.scb-bar__btn.scb--ripple::after { opacity: 1; }

/* ── Icon ── */
.scb-bar__btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.scb-bar__btn:hover .scb-bar__btn-icon { transform: translateY(-2px); }

/* ── Label ── */
.scb-bar__btn-label {
  display: block;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

/* ── WhatsApp special pulse ── */
.scb-bar__btn--whatsapp .scb-bar__btn-icon::before {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  animation: scbPulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scbPulse {
  0%   { transform: scale(.8); opacity: .6; }
  70%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(.8); opacity: 0; }
}

/* ── Mobile / Desktop visibility ── */
.scb-hide-mobile  { display: none !important; }
.scb-hide-desktop {}

@media (min-width: 769px) {
  .scb-hide-desktop { display: none !important; }
}

/* ── Body padding so content is not hidden under bar ── */
body.scb-bar-active { padding-bottom: 70px; }
