/* Generated by scripts/build-case-study-legacy-css.mjs from /styles/site/whatsapp-float.css — do not edit. */
/*
 * Floating WhatsApp link (components/site/WhatsAppFloat.tsx).
 * A compact deep-purple button with the WhatsApp glyph and a small yellow dot. On hover and
 * keyboard focus it opens into a pill — "Let's talk · WhatsApp" — that grows away from the corner,
 * so the icon itself never moves. Sits at the inline end: bottom-right in English, bottom-left in
 * Arabic (the sidebar is on the other side in both).
 */
.whatsapp-float:where(:not(.web-case, .web-case *)) {
  --wa-size: 56px;
  --wa-purple: #542785;
  --wa-purple-deep: #3d1b63;
  --wa-yellow: #ffeb3b;
  --wa-bg: var(--wa-purple);

  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 999;

  display: flex;
  align-items: center;
  height: var(--wa-size);
  min-width: var(--wa-size);
  padding: 0;
  border-radius: 999px;

  color: #fff;
  background: var(--wa-bg);
  /* hairline inner edge + soft, tinted depth */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 10px 24px -10px rgba(42, 16, 74, 0.55),
    0 2px 6px rgba(20, 10, 40, 0.12);
  text-decoration: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;

  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    bottom 0.3s ease,
    opacity 0.25s ease,
    visibility 0.25s;
}

.whatsapp-float:hover:where(:not(.web-case, .web-case *)),.whatsapp-float:focus:where(:not(.web-case, .web-case *)),.whatsapp-float:active:where(:not(.web-case, .web-case *)) {
  color: #fff;
  text-decoration: none;
}

/* The glyph sits in a fixed square at the corner end of the pill */
.whatsapp-float__icon:where(:not(.web-case, .web-case *)) {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 var(--wa-size);
  width: var(--wa-size);
  height: var(--wa-size);
}

.whatsapp-float__icon svg:where(:not(.web-case, .web-case *)) {
  display: block;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Yellow accent: a still "we're here" dot on the icon's outer shoulder */
.whatsapp-float__dot:where(:not(.web-case, .web-case *)) {
  position: absolute;
  top: 11px;
  inset-inline-end: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wa-yellow);
  box-shadow: 0 0 0 2px var(--wa-bg); /* ring matches the button, so the dot reads as cut out */
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

/* Label: collapsed to nothing until the pill opens */
.whatsapp-float__label:where(:not(.web-case, .web-case *)) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  padding-inline-start: 0;
  transition:
    max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}

.whatsapp-float__cta:where(:not(.web-case, .web-case *)) {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.whatsapp-float__channel:where(:not(.web-case, .web-case *)) {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wa-yellow);
}

/* ---- Open: hover (real pointers only), keyboard focus, first-visit hint ---- */
@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover:where(:not(.web-case, .web-case *)) {
    --wa-bg: var(--wa-purple-deep);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.14),
      0 14px 30px -12px rgba(42, 16, 74, 0.6),
      0 2px 6px rgba(20, 10, 40, 0.14);
  }
  .whatsapp-float:hover .whatsapp-float__label:where(:not(.web-case, .web-case *)) {
    max-width: 12rem;
    padding-inline-start: 22px;
    opacity: 1;
    transition-delay: 0s, 0s, 0.12s;
  }
  /* the phone "rings" once: a small tilt, then settles */
  .whatsapp-float:hover .whatsapp-float__icon svg:where(:not(.web-case, .web-case *)) {
    transform: rotate(-12deg) scale(1.04);
  }
  .whatsapp-float:hover .whatsapp-float__dot:where(:not(.web-case, .web-case *)) {
    transform: scale(1.15);
  }
}

.whatsapp-float:focus-visible:where(:not(.web-case, .web-case *)),.whatsapp-float.is-intro:where(:not(.web-case, .web-case *)) {
  --wa-bg: var(--wa-purple-deep);
}

.whatsapp-float:focus-visible .whatsapp-float__label:where(:not(.web-case, .web-case *)),.whatsapp-float.is-intro .whatsapp-float__label:where(:not(.web-case, .web-case *)) {
  max-width: 12rem;
  padding-inline-start: 22px;
  opacity: 1;
  transition-delay: 0s, 0s, 0.12s;
}

.whatsapp-float:focus-visible:where(:not(.web-case, .web-case *)) {
  outline: 3px solid var(--wa-yellow);
  outline-offset: 3px;
}

/* Pressed */
.whatsapp-float:active .whatsapp-float__icon svg:where(:not(.web-case, .web-case *)) {
  transform: scale(0.94);
}

/* ---- Small screens ---- */
@media (max-width: 767px) {
  .whatsapp-float:where(:not(.web-case, .web-case *)) {
    --wa-size: 52px;
    bottom: 16px;
    inset-inline-end: 16px;
  }
  .whatsapp-float__dot:where(:not(.web-case, .web-case *)) {
    top: 10px;
    inset-inline-end: 10px;
  }
}

/* The homepage contact panel ends the page on small screens: leave room under its
   "Contact us / Schedule a meeting" row so the button never sits on top of it */
@media (max-width: 767px) {
  .contactRight:where(:not(.web-case, .web-case *)) {
    padding-bottom: 56px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .contactRight:where(:not(.web-case, .web-case *)) {
    padding-bottom: 66px;
  }
}

/* Never on top of the open mobile navigation drawer */
@media (max-width: 992px) {
  html.nav-open .whatsapp-float:where(:not(.web-case, .web-case *)) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Arabic: the label reads better without the Latin tracking */
html[dir="rtl"] .whatsapp-float__cta:where(:not(.web-case, .web-case *)),html[dir="rtl"] .whatsapp-float__channel:where(:not(.web-case, .web-case *)) {
  letter-spacing: 0;
}

html[dir="rtl"] .whatsapp-float__cta:where(:not(.web-case, .web-case *)) {
  font-size: 16px;
  line-height: 1.3;
}

html[dir="rtl"] .whatsapp-float__channel:where(:not(.web-case, .web-case *)) {
  font-size: 11.5px;
  text-transform: none;
}

/* Mirror the tilt so the receiver tips toward the reading direction */
@media (hover: hover) and (pointer: fine) {
  html[dir="rtl"] .whatsapp-float:hover .whatsapp-float__icon svg:where(:not(.web-case, .web-case *)) {
    transform: rotate(12deg) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float:where(:not(.web-case, .web-case *)),.whatsapp-float__label:where(:not(.web-case, .web-case *)),.whatsapp-float__icon svg:where(:not(.web-case, .web-case *)),.whatsapp-float__dot:where(:not(.web-case, .web-case *)) {
    transition: none;
  }
  .whatsapp-float:hover .whatsapp-float__icon svg:where(:not(.web-case, .web-case *)),html[dir="rtl"] .whatsapp-float:hover .whatsapp-float__icon svg:where(:not(.web-case, .web-case *)),.whatsapp-float:active .whatsapp-float__icon svg:where(:not(.web-case, .web-case *)),.whatsapp-float:hover .whatsapp-float__dot:where(:not(.web-case, .web-case *)) {
    transform: none;
  }
}

