/* ============================================
   CONTACT BUBBLES PARTIAL
   Purpose: Floating contact actions — all pages
   Mobile: fixed bottom nav bar
   Desktop: floating left side pills, expand on hover
   ============================================ */

/* ============================================
   BASE — shared styles
   ============================================ */

.contact-bubbles {
  position: fixed;
  z-index: 1060;
  display: flex;
}

.contact-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: var(--font-family);
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  color: #444444;
}

.contact-bubble__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-bubble__icon svg {
  display: block;
}

/* ============================================
   MOBILE — bottom nav bar
   ============================================ */

.contact-bubbles {
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  transform: none;
  flex-direction: row;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
  height: 60px;
  padding: 0;
  gap: 0;
}

.contact-bubble {
  flex: 1;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  border-radius: 0;
  padding: 6px 2px 4px;
  transition: background 0.15s ease;
}

.contact-bubble__icon {
  width: 24px;
  height: 24px;
}

.contact-bubble__icon svg {
  width: 22px;
  height: 22px;
}

.contact-bubble__label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.contact-bubble--phone .contact-bubble__icon   { color: #1a73e8; }
.contact-bubble--whatsapp .contact-bubble__icon { color: #25d366; }
.contact-bubble--email .contact-bubble__icon    { color: #ea4335; }
.contact-bubble--reviews .contact-bubble__icon  { color: #f9ab00; }
.contact-bubble--share .contact-bubble__icon    { color: #34a853; }

.contact-bubble:active {
  background: rgba(0, 0, 0, 0.06);
}

/* ============================================
   BODY PADDING — stop content hiding behind mobile bar
   ============================================ */

body {
  padding-bottom: 60px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* ============================================
   DESKTOP — floating left pills
   ============================================ */

@media (min-width: 768px) {
  .contact-bubbles {
    bottom: auto;
    left: 0;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    background: transparent;
    border-top: none;
    box-shadow: none;
    height: auto;
    gap: 8px;
    padding: 8px 0;
  }
}

@media (min-width: 768px) {
  .contact-bubble {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    height: 46px;
    width: 46px;
    border-radius: 0 28px 28px 0;
    padding: 0 16px 0 12px;
    gap: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    white-space: nowrap;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease, background 0.15s ease;
  }
}

@media (min-width: 768px) {
  .contact-bubble__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
}

@media (min-width: 768px) {
  .contact-bubble__icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 768px) {
  .contact-bubble__label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
  }
}

@media (min-width: 768px) {
  .contact-bubble:hover {
    width: 148px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  }
}

@media (min-width: 768px) {
  .contact-bubble:hover .contact-bubble__label {
    opacity: 1;
    transition: opacity 0.15s ease 0.1s;
  }
}

/* Desktop background colors */
@media (min-width: 768px) {
  .contact-bubble--phone    { background: #1a73e8; }
  .contact-bubble--whatsapp { background: #25d366; }
  .contact-bubble--email    { background: #ea4335; }
  .contact-bubble--reviews  { background: #f9ab00; color: #333333; }
  .contact-bubble--share    { background: #34a853; }
}

/* Desktop icon color inherits from parent */
@media (min-width: 768px) {
  .contact-bubble--phone .contact-bubble__icon,
  .contact-bubble--whatsapp .contact-bubble__icon,
  .contact-bubble--email .contact-bubble__icon,
  .contact-bubble--reviews .contact-bubble__icon,
  .contact-bubble--share .contact-bubble__icon {
    color: inherit;
  }
}

/* Desktop hover darken */
@media (min-width: 768px) {
  .contact-bubble--phone:hover    { background: #1557b0; color: #ffffff; }
  .contact-bubble--whatsapp:hover { background: #1da851; color: #ffffff; }
  .contact-bubble--email:hover    { background: #c5221f; color: #ffffff; }
  .contact-bubble--reviews:hover  { background: #e89e00; color: #1a1a1a; }
  .contact-bubble--share:hover    { background: #2d7a3a; color: #ffffff; }
}

/* ============================================
   LANDING PAGE — pills start expanded on desktop
   ============================================ */

@media (min-width: 768px) {
  body.page-home .contact-bubble {
    width: 148px;
  }
}

@media (min-width: 768px) {
  body.page-home .contact-bubble .contact-bubble__label {
    opacity: 1;
  }
}

