/**
 * Here, Mostly — CTA section (Connect / Share / Contact). Theme-owned presentation.
 * Shortcodes and click handlers remain in the heremostly plugin.
 */

.hm-cta-section,
.hm-cta-grid,
.elementor-element.hm-cta-grid > .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: clamp(24px, 4vw, 48px) clamp(32px, 6vw, 48px);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
  padding: clamp(8px, 2vw, 24px) 16px clamp(16px, 3vw, 32px);
  background: #fff;
}

.elementor-element.hm-cta-grid.e-flex > .e-con-inner {
  flex-direction: unset !important;
}

.elementor-element.hm-cta-grid .elementor-widget-shortcode {
  width: 100%;
  max-width: none;
}

.elementor-element.hm-cta-grid > .e-con-inner > .elementor-element {
  width: auto !important;
  max-width: none !important;
  flex: unset !important;
}

.hm-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 8px;
  max-width: 220px;
  margin: 0 auto;
}

.hm-cta-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 12px;
  transition: transform 0.3s ease;
}

.hm-cta:hover .hm-cta-icon,
.hm-cta:focus-within .hm-cta-icon {
  transform: scale(1.12);
}

.hm-cta h3 {
  color: var(--hm-blue, #4576bb);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

/* Tooltip-only copy — no permanent description block (Connect/Share/Contact). */
.hm-cta-desc {
  display: none !important;
}

.hm-cta-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 10px;
  white-space: normal;
  width: min(280px, 90vw);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 20;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hm-cta:hover .hm-cta-tooltip,
.hm-cta:focus-within .hm-cta-tooltip {
  display: block;
  opacity: 1;
}

@media (max-width: 767px) {
  .hm-cta-grid,
  .elementor-element.hm-cta-grid > .e-con-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hm-cta-icon {
    width: 80px;
    height: 80px;
  }

  .hm-cta h3 {
    font-size: 1.25rem;
  }
}
