/* ============================================================
   Contact FAB — floating bottom-right contact panel
   Always-visible trigger that opens a tile panel with phones,
   address and 4 messenger icons.
   ============================================================ */

.contact-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  pointer-events: none; /* events only on trigger and panel */
}
.contact-fab > * { pointer-events: auto; }

/* ---------- Trigger button ---------- */
.contact-fab-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(58, 143, 163, 0.3);
  transition: background 0.3s var(--ease-expo),
              box-shadow 0.3s var(--ease-expo),
              transform 0.3s var(--ease-expo);
  position: relative;
}
.contact-fab-trigger:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 32px rgba(58, 143, 163, 0.4);
  transform: translateY(-2px);
}
.contact-fab-trigger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.contact-fab-trigger-icon {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.25s var(--ease-expo),
              transform 0.25s var(--ease-expo);
}
.contact-fab-trigger-icon--close {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}
.contact-fab[data-open="true"] .contact-fab-trigger-icon--message {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}
.contact-fab[data-open="true"] .contact-fab-trigger-icon--close {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- Panel ---------- */
.contact-fab-panel {
  position: absolute;
  bottom: 76px; /* trigger height (60) + gap (16) */
  right: 0;
  width: 280px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.3s var(--ease-expo),
              transform 0.3s var(--ease-expo),
              visibility 0s linear 0.3s; /* delay until fade-out completes */
}
.contact-fab[data-open="true"] .contact-fab-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.3s var(--ease-expo),
              transform 0.3s var(--ease-expo),
              visibility 0s linear 0s; /* instant on open */
}

/* ---------- Panel content ---------- */
.contact-fab-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--text);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.contact-fab-section {
  margin-bottom: 16px;
}
.contact-fab-section:last-child {
  margin-bottom: 0;
}
.contact-fab-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
  margin: 0 0 8px;
}
.contact-fab-link {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.3s var(--ease-expo);
}
.contact-fab-link:hover {
  color: var(--accent);
}
.contact-fab-address {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

/* ---------- Messenger row overrides ---------- */
.contact-fab-messengers {
  margin-top: 0;
  gap: 10px;
  justify-content: flex-start;
}
.contact-fab-messengers .messenger-link {
  width: 38px;
  height: 38px;
}
.contact-fab-messengers .messenger-link svg {
  width: 17px;
  height: 17px;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .contact-fab {
    bottom: 18px;
    right: 18px;
  }
  .contact-fab-trigger {
    width: 54px;
    height: 54px;
  }
  .contact-fab-panel {
    width: 260px;
    padding: 20px;
    bottom: 70px;
  }
}
