/* Apenas interação/posicionamento; aparência herdada do site. */
.floating-contact{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.floating-contact img{-webkit-user-drag:none;user-select:none;pointer-events:none}
.floating-contact.is-dragging{cursor:grabbing;transition:none!important;transform:none!important}
.floating-contact.is-snapping{transition:left .5s cubic-bezier(.22,1,.36,1),top .5s cubic-bezier(.22,1,.36,1),background .25s,transform .25s}
.floating-contact.is-left-half span{right:auto;left:60px}
@media(hover:none){.floating-contact.is-dragging span{opacity:0!important}}
@media(prefers-reduced-motion:reduce){.floating-contact.is-snapping{transition:none!important}}

@media(max-width:760px){.floating-contact:not(.is-dragging):not(.is-snapping):not([style*="top:"]){bottom:calc(17px + env(safe-area-inset-bottom,0px))}}


/* Mobile Safari: anchor to the usable bottom edge instead of storing a fixed
   pixel top that becomes stale as the browser toolbar expands/collapses. */
@media (max-width: 760px) {
  .floating-contact:not(.is-dragging) {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .floating-contact.is-dragging {
    bottom: auto !important;
  }
}


/* OZEEH tactile smoked-glass buttons, independently styled from page Liquid Glass.
   Only header WhatsApp CTA + draggable floating WhatsApp are affected. */
.work.section-wrap { padding-bottom: clamp(26px, 3.8vw, 50px); }
@media (max-width: 760px) { .work.section-wrap { padding-bottom: 30px; } }

/* Premium raised glass, asymmetrical rim and diffused highlights. */
body .site-header a.header-contact.wa-glass-cta {
  --wa-x: 50%; --wa-y: 50%; --wa-rx: 0deg; --wa-ry: 0deg;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; flex-shrink: 0; align-items: center;
  gap: 12px;
  box-sizing: border-box;
  height: 44px; min-height: 44px; /* Equal to the adjacent navigation pill */
  border: 1px solid var(--glass-border, rgba(246,241,238,.24)) !important;
  border-radius: 999px;
  padding: 5px 6px 5px 18px;
  color: #f4edf3 !important;
  background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(78,20,42,.03)) !important;
  -webkit-backdrop-filter: blur(16px) saturate(156%) !important;
  backdrop-filter: blur(16px) saturate(156%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 35px rgba(0,0,0,.10) !important;
  transform: perspective(850px) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.22,1,.36,1), border-color .28s ease, background .28s ease;
}
body .site-header a.header-contact.wa-glass-cta span {
  position: relative; z-index: 2; display: grid; place-items: center;
  border-radius: 50%; width: 30px; height: 30px; flex: 0 0 30px;
  background: rgba(255,255,255,.04) !important;
  color: #f2eaf0 !important;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
body .site-header a.header-contact.wa-glass-cta::before,
body .floating-contact.wa-glass-fab::before {
  content: ''; position:absolute; inset: 0; border-radius: inherit; pointer-events:none;
  background: radial-gradient(ellipse 130px 82px at var(--wa-x,50%) var(--wa-y,50%), rgba(255,248,254,.10), rgba(222,145,185,.035) 48%, transparent 82%);
  opacity: 0; transition: opacity .68s ease-out;
}
body .site-header a.header-contact.wa-glass-cta::after {
  content:''; position:absolute; inset:1px; border-radius: inherit; pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 42%);
}
body .site-header a.header-contact.wa-glass-cta:is(:hover,:focus-visible) {
  border-color: rgba(246,241,238,.30) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.065), rgba(78,20,42,.05)) !important;
}
body .site-header a.header-contact.wa-glass-cta.wa-lit {
  transform: perspective(850px) rotateX(var(--wa-rx)) rotateY(var(--wa-ry));
  transition-duration: .24s;
}
body .site-header a.header-contact.wa-glass-cta.wa-lit::before,
body .floating-contact.wa-glass-fab.wa-lit::before { opacity:1; transition-duration:.16s; }
body .site-header a.header-contact.wa-glass-cta:active {
  transform: perspective(850px) translateY(1px) scale(.987);
}

/* Soft physical glass lens: the clickable anchor never deforms; its ::after lens does. */
body .floating-contact.wa-glass-fab {
  --wa-x: 50%; --wa-y: 50%;
  --wa-jx: 0px; --wa-jy: 0px;
  --wa-float-y: 0px; --wa-float-rot: 0deg;
  --wa-js-x: 1; --wa-js-y: 1; --wa-jrot: 0deg;
  --wa-morph-tl: 50%; --wa-morph-tr: 50%; --wa-morph-br: 50%; --wa-morph-bl: 50%;
  --wa-morph-vtl: 50%; --wa-morph-vtr: 50%; --wa-morph-vbr: 50%; --wa-morph-vbl: 50%;
  --wa-morph-hx: 28%; --wa-morph-hy: 20%;
  isolation: isolate; overflow: visible;
  border: 1px solid transparent !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  transition: transform .3s, background .3s;
}
body .floating-contact.wa-glass-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.40);
  border-radius: var(--wa-morph-tl) var(--wa-morph-tr) var(--wa-morph-br) var(--wa-morph-bl) /
                 var(--wa-morph-vtl) var(--wa-morph-vtr) var(--wa-morph-vbr) var(--wa-morph-vbl);
  background:
    radial-gradient(circle at var(--wa-morph-hx) var(--wa-morph-hy), rgba(255,255,255,.44), transparent 34%),
    radial-gradient(circle at 75% 83%, rgba(244,223,238,.12), transparent 43%),
    linear-gradient(155deg, rgba(255,255,255,.20), rgba(255,255,255,.065) 55%, rgba(255,255,255,.14));
  -webkit-backdrop-filter: blur(15px) saturate(165%) brightness(1.12);
  backdrop-filter: blur(15px) saturate(165%) brightness(1.12);
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,.60),
    inset 2px 0 8px rgba(255,255,255,.10),
    inset -2px -4px 12px rgba(6,5,14,.15),
    0 9px 24px -13px rgba(0,0,0,.62);
  transform: translate3d(var(--wa-jx),calc(var(--wa-jy) + var(--wa-float-y)),0)
             rotate(calc(var(--wa-jrot) + var(--wa-float-rot))) scale(var(--wa-js-x),var(--wa-js-y));
  transform-origin: center;
}
body .floating-contact.wa-glass-fab:is(.is-jelly-active,.is-scroll-floating)::after { will-change: transform; }
/* The glow and icon drift together with the lens; the fixed link stays put. */
body .floating-contact.wa-glass-fab::before { transform: translate3d(0,var(--wa-float-y),0); }
body .floating-contact.wa-glass-fab.is-scroll-floating img { transition: none !important; }
body .floating-contact.wa-glass-fab::before {
  z-index: 1;
  background: radial-gradient(circle 43px at var(--wa-x,50%) var(--wa-y,50%),
    rgba(255,255,255,.36),rgba(255,255,255,.085) 48%,transparent 80%);
}
body .floating-contact.wa-glass-fab img {
  width: 26px; max-width: 26px; height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 1px 0 rgba(255,255,255,.18));
  position: relative; z-index: 2;
  transform: translate3d(0,var(--wa-float-y),0);
  transition: transform .48s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
body .floating-contact.wa-glass-fab:is(:hover,:focus-visible) { transform: none; }
body .floating-contact.wa-glass-fab:is(:hover,:focus-visible)::after {
  border-color: rgba(255,255,255,.62);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.72),
    inset -2px -4px 12px rgba(6,5,14,.11),0 11px 25px -12px rgba(0,0,0,.59);
}
body .floating-contact.wa-glass-fab.wa-lit:not(.is-dragging) img { transform: translate3d(0,var(--wa-float-y),0) scale(1.06); }
body .floating-contact.wa-glass-fab.is-dragging img { transition: none; }
/* No floating text bubble, including on desktop hover and keyboard focus.
   The link retains its aria-label for screen-reader accessibility. */
body .floating-contact.wa-glass-fab > span { display: none !important; }
body .floating-contact.wa-glass-fab > span {
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.09));
  border-color: rgba(255,255,255,.20);
  border-radius: 13px;
  -webkit-backdrop-filter: blur(18px) saturate(170%) brightness(1.1);
  backdrop-filter: blur(18px) saturate(170%) brightness(1.1);
  color: #f8f3f6;
  z-index: 3;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 12px 24px -18px rgba(0,0,0,.62);
}
body .site-header a.header-contact.wa-glass-cta:focus-visible,
body .floating-contact.wa-glass-fab:focus-visible {
  outline:2px solid rgba(255,194,222,.9); outline-offset:4px;
}
/* Touch interfaces get full styled glass without relying on hover. */
@media (max-width:760px) {
  body .site-header a.header-contact.wa-glass-cta {
    height:44px; min-height:44px;
    padding:6px 6px 6px 13px;
    gap:8px; font-size:11px; max-width:calc(100vw - 135px);
    white-space:nowrap;
  }
  body .site-header a.header-contact.wa-glass-cta span {
    width:30px;height:30px;flex-basis:30px;
  }
  body .floating-contact.wa-glass-fab img {width:25px;max-width:25px}
}
@media (hover:none), (pointer:coarse) {
  body .site-header a.header-contact.wa-glass-cta {transform:none}
  body .site-header a.header-contact.wa-glass-cta:active {transform:scale(.985)}
  body .floating-contact.wa-glass-fab:not(.is-dragging):active img {transform:scale(.94)}
}
@media (prefers-reduced-motion:reduce) {
  body .site-header a.header-contact.wa-glass-cta,
  body .floating-contact.wa-glass-fab,
  body .floating-contact.wa-glass-fab img {transition:none!important}
  body .site-header a.header-contact.wa-glass-cta.wa-lit,
  body .floating-contact.wa-glass-fab:is(:hover,:focus-visible) {transform:none!important}
  body .site-header a.header-contact.wa-glass-cta::before,
  body .floating-contact.wa-glass-fab::before {display:none}
  body .floating-contact.wa-glass-fab::before,
  body .floating-contact.wa-glass-fab img {transform:none!important}
  body .floating-contact.wa-glass-fab::after {transform:none!important;will-change:auto!important;border-radius:50%!important}
}


/* OZEEH / EDITORIAL DARK GLASS — same material as the header on all screens.
   Only appearance changes; the drag-to-edge, spring and Safari insets stay JS-owned. */
body .floating-contact.wa-glass-fab {
  width: 53px;
  height: 53px;
  min-width: 53px;
  min-height: 53px;
  border: 1px solid transparent !important;
  border-radius: 50%;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
body .floating-contact.wa-glass-fab::after {
  border: 1px solid var(--ozeeh-editorial-rim,rgba(227,57,68,.29));
  background:
    radial-gradient(ellipse 74% 58% at 27% 7%, rgba(214,69,89,.095), transparent 84%),
    linear-gradient(145deg,rgba(35,12,25,.96) 0%,rgba(15,8,15,.98) 100%);
  -webkit-backdrop-filter: blur(17px) saturate(120%);
  backdrop-filter: blur(17px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255,232,237,.12),
    inset 0 -1px 0 rgba(227,57,68,.06),
    0 10px 27px rgba(0,0,0,.38),
    0 0 19px -15px rgba(227,57,68,.38);
}
body .floating-contact.wa-glass-fab::before {
  background: radial-gradient(circle 43px at var(--wa-x,50%) var(--wa-y,50%),
    rgba(235,69,91,.15),rgba(235,69,91,.04) 45%,transparent 75%);
  opacity: 0;
}
body .floating-contact.wa-glass-fab:is(:hover,:focus-visible)::after {
  border-color: var(--ozeeh-editorial-rim-hover,rgba(244,100,111,.52));
  box-shadow:
    inset 0 1px 0 rgba(255,232,237,.16),
    0 13px 31px rgba(0,0,0,.41),
    0 0 20px -13px rgba(227,57,68,.38);
}
body .floating-contact.wa-glass-fab img {
  width: 25px;
  max-width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .94;
}
body .floating-contact.wa-glass-fab.wa-lit:not(.is-dragging) img {
  transform: translate3d(0,var(--wa-float-y),0) scale(1.045);
}
@media (max-width: 760px) {
  body .floating-contact.wa-glass-fab {
    width: 49px;
    min-width: 49px;
    height: 49px;
    min-height: 49px;
  }
  body .floating-contact.wa-glass-fab img {
    width: 24px;
    max-width: 24px;
    height: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body .floating-contact.wa-glass-fab::after { transform: none !important; }
}
