/* Mobile action bar + site-wide floating FABs */

:root {
  --mobile-action-bar-h: 56px;
  --fab-instagram-bg: linear-gradient(135deg, #f58529 0%, #dd2a7b 52%, #8134af 100%);
}

/* =========================
   FLOATING ACTION BUTTONS
========================= */

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fab i {
  color: #fff !important;
  line-height: 1;
  display: block;
  font-size: 1.25rem;
}

.fab-whatsapp {
  background: #25d366;
}

.fab-call {
  background: #e07a2f;
}

.fab-mail {
  background: #7fa650;
}

/* High-contrast Instagram — visible on light & dark backgrounds */
.fab-instagram {
  background-color: #c13584;
  background-image: var(--fab-instagram-bg);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 8px 22px rgba(193, 53, 132, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

.fab-instagram i {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.fab:hover,
.fab:active {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.fab-instagram:hover,
.fab-instagram:active {
  box-shadow:
    0 12px 28px rgba(193, 53, 132, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
  .floating-actions .fab {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .floating-actions .fab i {
    font-size: 1.15rem;
  }
}

/* =========================
   MOBILE STICKY BAR
========================= */

@media (max-width: 768px) {
  body.has-mobile-action-bar {
    padding-bottom: calc(var(--mobile-action-bar-h) + env(safe-area-inset-bottom, 0px));
  }
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-action-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9500;
    height: var(--mobile-action-bar-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-action-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    text-decoration: none;
    color: var(--text-dark, #1f2f28);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.1;
    border: none;
    background: transparent;
    min-height: 44px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .mobile-action-bar__item i {
    font-size: 1.15rem;
    line-height: 1;
  }

  .mobile-action-bar__item--wa i {
    color: #25d366;
  }

  .mobile-action-bar__item--call i {
    color: #e07a2f;
  }

  .mobile-action-bar__item--primary {
    flex: 1.15;
    margin: 6px 8px 6px 4px;
    border-radius: 999px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.72rem;
    box-shadow: 0 4px 14px rgba(107, 143, 62, 0.35);
  }

  .mobile-action-bar__item--primary i {
    color: #fff;
  }

  .mobile-action-bar__item:active {
    opacity: 0.88;
  }

  .floating-actions {
    left: 12px;
    right: auto;
    bottom: calc(var(--mobile-action-bar-h) + env(safe-area-inset-bottom, 0px) + 12px);
    z-index: 9400;
  }

  /* WA + Call covered by sticky bar; keep Instagram accessible */
  .floating-actions .fab-whatsapp,
  .floating-actions .fab-call {
    display: none;
  }

  .howto-fab {
    right: 12px;
    left: auto;
    bottom: calc(var(--mobile-action-bar-h) + env(safe-area-inset-bottom, 0px) + 72px);
    z-index: 9390;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

}
