/**
 * Mobile fixed bottom action bar (call, WhatsApp, quote)
 */

.ates-mobile-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: var(--ates-mobile-bar-height);
  padding-bottom: var(--ates-safe-bottom);
  background: #ffffff;
  border-top: 1px solid var(--ates-brand-border);
  box-shadow: 0 -8px 24px rgba(15, 26, 20, 0.08);
}

@media (min-width: 1024px) {
  .ates-mobile-bottom-bar {
    display: none;
  }
}

.ates-mobile-bottom-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: var(--ates-font-ui);
  line-height: 1.2;
  text-decoration: none;
  color: var(--ates-text-primary);
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ates-mobile-bottom-bar__item:not(:last-child) {
  border-right: 1px solid var(--ates-brand-border);
}

.ates-mobile-bottom-bar__item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.ates-mobile-bottom-bar__item--call {
  color: var(--ates-brand-green);
}

.ates-mobile-bottom-bar__item--whatsapp {
  color: var(--ates-whatsapp-green-dark);
}

.ates-mobile-bottom-bar__item--quote {
  color: var(--ates-brand-red);
}

.ates-mobile-bottom-bar__item:hover,
.ates-mobile-bottom-bar__item:focus-visible {
  background: var(--ates-brand-surface);
}

/* Reserve space so footer/content is not hidden behind the bar */
@media (max-width: 1023px) {
  body.ates-pen-body {
    padding-bottom: calc(var(--ates-mobile-bar-height) + var(--ates-safe-bottom) + 0.5rem);
  }

  body.ates-pen-body .elementor-location-footer {
    margin-bottom: calc(var(--ates-mobile-bar-height) + var(--ates-safe-bottom));
  }
}

.ates-mobile-bottom-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ates-brand-surface);
}

.ates-mobile-bottom-bar__item--whatsapp .ates-mobile-bottom-bar__icon {
  background: rgba(37, 211, 102, 0.12);
}

.ates-mobile-bottom-bar__item--quote .ates-mobile-bottom-bar__icon {
  background: rgba(227, 27, 35, 0.1);
}