/*
 * Elementor button styles.
 * Add to a Button widget: Advanced > CSS Classes
 *   mh-btn-primary            mint pill
 *   mh-btn-outline            outline pill
 *   mh-btn-arrow              (with either) dark round arrow chip; set the widget Icon to an
 *                             up-right arrow and Icon Position to "After"
 */
:root {
  --mh-btn-cream: #e2eae1;
  --mh-btn-mint: #e3eae1;
  --mh-btn-dark: #16211d;
}

.mh-btn-primary .elementor-button,
.mh-btn-outline .elementor-button {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 32px !important;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mh-btn-primary .elementor-button:hover,
.mh-btn-outline .elementor-button:hover { transform: translateY(-2px); }

.mh-btn-primary .elementor-button:focus-visible,
.mh-btn-outline .elementor-button:focus-visible {
  outline: 2px solid var(--mh-btn-cream);
  outline-offset: 3px;
}

.mh-btn-primary .elementor-button {
  background: var(--mh-btn-mint);
  color: var(--mh-btn-dark);
}
.mh-btn-primary .elementor-button:hover,
.mh-btn-primary .elementor-button:focus {
  background: #fff;
  color: var(--mh-btn-dark);
}

.mh-btn-outline .elementor-button {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--mh-btn-cream);
}
.mh-btn-outline .elementor-button:hover,
.mh-btn-outline .elementor-button:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: var(--mh-btn-cream);
}

/* Arrow chip */
.mh-btn-arrow .elementor-button { padding: 0 8px 0 32px !important; } /* beats the widget's own Padding control */

.mh-btn-arrow .elementor-button-content-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.mh-btn-arrow .elementor-button-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mh-btn-dark);
  color: #fff;
  font-size: 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mh-btn-outline.mh-btn-arrow .elementor-button-icon {
  background: var(--mh-btn-cream);
  color: var(--mh-btn-dark);
}
.mh-btn-outline.mh-btn-arrow .elementor-button:hover .elementor-button-icon,
.mh-btn-outline.mh-btn-arrow .elementor-button:focus-visible .elementor-button-icon { background: #fff; }
.mh-btn-arrow .elementor-button-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Arrow slides out to the top-right, then re-enters from the bottom-left. */
.mh-btn-arrow .elementor-button:hover .elementor-button-icon > *,
.mh-btn-arrow .elementor-button:focus-visible .elementor-button-icon > * {
  animation: mh-btn-arrow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes mh-btn-arrow {
  0%   { transform: translate(0, 0); }
  45%  { transform: translate(18px, -18px); opacity: 0; }
  46%  { transform: translate(-18px, 18px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mh-btn-arrow .elementor-button:hover .elementor-button-icon > *,
  .mh-btn-arrow .elementor-button:focus-visible .elementor-button-icon > * { animation: none; }
}
