﻿/* ==========================================================
   ebmnt1 — hero call to action, fixed whatsapp CTA, scroll-top
   ========================================================== */

/* ---------- 12. hero call to action (notched orange block) ---------- */

.ebmnt1-hero-cta {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: stretch;
  width: min(100%, 30rem);
  background-color: var(--ebmnt1-hero-cta-background-color);
  clip-path: polygon(0 0, 85% 0, 100% 25%, 100% 100%, 0 100%);
}

.ebmnt1-hero-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  flex: 0 0 auto;
  padding: 2.2em 1.6em 1.2em;
}

.ebmnt1-hero-cta__circle {
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.4s ease-in-out;
}

.ebmnt1-hero-cta__circle:hover {
  transform: scale(1.1);
}

.ebmnt1-hero-cta__circle--dark {
  background-color: var(--ebmnt1-hero-cta-circle-dark-background-color);
  color: var(--ebmnt1-hero-cta-circle-dark-icon-color);
}

.ebmnt1-hero-cta__circle--light {
  background-color: var(--ebmnt1-hero-cta-circle-light-background-color);
  color: var(--ebmnt1-hero-cta-circle-light-icon-color);
}

.ebmnt1-hero-cta__link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  min-height: 4.6rem;
  padding-inline: 1em;
  background-color: var(--ebmnt1-hero-cta-link-background-color);
  color: var(--ebmnt1-hero-cta-link-text-color);
  font-family: var(--ebmnt1-font-heading);
  font-size: var(--ebmnt1-fs-sm);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  transition: color 0.4s ease-in-out;
}

.ebmnt1-hero-cta__link:hover {
  color: var(--ebmnt1-hero-cta-link-hover-text-color);
}

/* ---------- 13. fixed CTA dock, bottom-left (whatsapp + call) ---------- */

.ebmnt1-fixed-cta {
  position: fixed;
  left: 0.8em;
  bottom: 0.8em;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  padding: 0.5em;
  border: 1px solid var(--ebmnt1-fixed-cta-dock-border-color);
  border-radius: 2.2em;
  background-color: var(--ebmnt1-fixed-cta-dock-background-color);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0.8em 2em var(--ebmnt1-fixed-cta-dock-shadow-color);
}

.ebmnt1-fixed-cta__btn {
  position: relative;
  display: flex;
  flex-direction: row-reverse; /* icon sits on the outer (left) edge */
  align-items: center;
  gap: 0.7em;
  padding: 0.3em;
  border-radius: 999px;
  color: var(--ebmnt1-fixed-cta-text-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ebmnt1-fixed-cta__btn--whatsapp {
  background: linear-gradient(
    135deg,
    var(--ebmnt1-fixed-cta-whatsapp-start-color),
    var(--ebmnt1-fixed-cta-whatsapp-end-color)
  );
  box-shadow: 0 4px 0 var(--ebmnt1-fixed-cta-whatsapp-edge-color),
    0 8px 16px var(--ebmnt1-fixed-cta-button-shadow-color);
}

.ebmnt1-fixed-cta__btn--call {
  background: linear-gradient(
    135deg,
    var(--ebmnt1-fixed-cta-call-start-color),
    var(--ebmnt1-fixed-cta-call-end-color)
  );
  box-shadow: 0 4px 0 var(--ebmnt1-fixed-cta-call-edge-color),
    0 8px 16px var(--ebmnt1-fixed-cta-button-shadow-color);
}

.ebmnt1-fixed-cta__btn:hover {
  transform: translateY(-2px);
}

.ebmnt1-fixed-cta__btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ebmnt1-fixed-cta-button-pressed-edge-color);
}

.ebmnt1-fixed-cta__icon {
  position: relative;
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--ebmnt1-fixed-cta-icon-background-color);
  font-size: 1.45rem;
}

.ebmnt1-fixed-cta__btn--whatsapp .ebmnt1-fixed-cta__icon {
  color: var(--ebmnt1-fixed-cta-whatsapp-icon-color);
}

.ebmnt1-fixed-cta__btn--call .ebmnt1-fixed-cta__icon {
  color: var(--ebmnt1-fixed-cta-call-icon-color);
}

/* ping ring behind the icon */

.ebmnt1-fixed-cta__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--ebmnt1-fixed-cta-ping-color);
  animation: ebmnt1-ping 2.4s infinite;
}

.ebmnt1-fixed-cta__btn--call .ebmnt1-fixed-cta__icon::before {
  animation-delay: 1.2s;
}

/* "online now" dot on the whatsapp icon */

.ebmnt1-fixed-cta__status {
  position: absolute;
  top: -0.05rem;
  inset-inline-end: -0.05rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--ebmnt1-fixed-cta-status-border-color);
  border-radius: 50%;
  background-color: var(--ebmnt1-fixed-cta-status-color);
  animation: ebmnt1-blink 1.6s ease-in-out infinite;
}

.ebmnt1-fixed-cta__text {
  display: flex;
  flex-direction: column;
  max-width: 10rem;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.35;
  padding-inline-end: 0.7em;
  transition: max-width 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}

.ebmnt1-fixed-cta__label {
  font-family: var(--ebmnt1-font-heading);
  font-size: var(--ebmnt1-fs-sm);
  font-weight: 700;
  color: var(--ebmnt1-fixed-cta-label-color);
}

.ebmnt1-fixed-cta__hint {
  font-size: var(--ebmnt1-fs-xs);
  color: var(--ebmnt1-fixed-cta-hint-color);
}

/* smart compact state: icons only while scrolling down, expands on hover / focus / scroll up */

.ebmnt1-fixed-cta.ebmnt1-is-compact:not(:hover):not(:focus-within) .ebmnt1-fixed-cta__text {
  max-width: 0;
  opacity: 0;
  padding-inline-end: 0;
}

@keyframes ebmnt1-ping {
  0% {
    box-shadow: 0 0 0 0 var(--ebmnt1-fixed-cta-ping-color);
  }

  70%,
  100% {
    box-shadow: 0 0 0 0.9em transparent;
  }
}

@keyframes ebmnt1-blink {
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebmnt1-fixed-cta__icon::before,
  .ebmnt1-fixed-cta__status {
    animation: none;
  }
}

/* ---------- scroll to top with progress ring, bottom-right ---------- */

.ebmnt1-scroll-top {
  --ebmnt1-scroll-progress: 0deg;
  position: fixed;
  right: 1em;
  bottom: 1em;
  z-index: 900;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--ebmnt1-scroll-top-ring-color) var(--ebmnt1-scroll-progress),
    var(--ebmnt1-scroll-top-ring-track-color) 0
  );
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ebmnt1-scroll-top.ebmnt1-is-visible {
  opacity: 1;
  visibility: visible;
}

.ebmnt1-scroll-top__inner {
  width: calc(100% - 0.3rem);
  height: calc(100% - 0.3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--ebmnt1-scroll-top-background-color);
  color: var(--ebmnt1-scroll-top-icon-color);
}

@media (min-width: 768px) {
  .ebmnt1-hero-cta {
    width: min(100%, 34rem);
  }
}


