/* ==========================================================================
   KyroDoc Motion Kit
   Animation classes used by the Elementor page templates.
   Prefix: kdm-   |  Reveal classes only hide content when JS is running and
   we are NOT inside the Elementor editor.
   ========================================================================== */
:root { --kdm-e: cubic-bezier(.16, 1, .3, 1); }

/* ---------- scroll progress bar ---------- */
.kdm-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001; pointer-events: none; }
.kdm-progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #C8963E, #469397); }

/* ---------- reveal on scroll ---------- */
html.kdm-js body:not(.elementor-editor-active) :is(.kdm-up, .kdm-left, .kdm-right, .kdm-zoom, .kdm-fade) { opacity: 0; will-change: opacity, translate; }
html.kdm-js body:not(.elementor-editor-active) .kdm-up    { translate: 0 42px; }
html.kdm-js body:not(.elementor-editor-active) .kdm-left  { translate: -60px 0; }
html.kdm-js body:not(.elementor-editor-active) .kdm-right { translate: 60px 0; }
html.kdm-js body:not(.elementor-editor-active) .kdm-zoom  { scale: .9; }
html.kdm-js body:not(.elementor-editor-active) .kdm-in {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity 1s var(--kdm-e) var(--kdm-d, 0s), translate 1s var(--kdm-e) var(--kdm-d, 0s), scale 1s var(--kdm-e) var(--kdm-d, 0s),
              transform .45s var(--kdm-e), box-shadow .45s ease, border-color .3s ease;
}
.kdm-d1 { --kdm-d: .08s } .kdm-d2 { --kdm-d: .16s } .kdm-d3 { --kdm-d: .24s } .kdm-d4 { --kdm-d: .32s }
.kdm-d5 { --kdm-d: .4s }  .kdm-d6 { --kdm-d: .48s } .kdm-d7 { --kdm-d: .56s } .kdm-d8 { --kdm-d: .64s }

/* ---------- headline: words slide up ---------- */
.kdm-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.kdm-w > span { display: inline-block; }
html.kdm-js body:not(.elementor-editor-active) .kdm-split .kdm-w > span { translate: 0 115%; }
html.kdm-js body:not(.elementor-editor-active) .kdm-split.kdm-in .kdm-w > span { translate: 0 0; transition: translate .9s var(--kdm-e) calc(var(--i, 0) * 70ms + .05s); }
html.kdm-js body:not(.elementor-editor-active) .kdm-split.kdm-in { opacity: 1; }

/* animated gradient text */
.kdm-gt, .kdm-gt-light {
  background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: kdmShift 7s ease-in-out infinite alternate;
}
.kdm-gt       { background-image: linear-gradient(100deg, #0A3D40 0%, #125B5F 28%, #C8963E 55%, #125B5F 80%, #0A3D40 100%); }
.kdm-gt-light { background-image: linear-gradient(100deg, #FFFFFF 0%, #F5E6C2 35%, #C8963E 60%, #C7E0E0 100%); }

.kdm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #C8963E; margin-right: 9px; vertical-align: middle; position: relative; top: -1px; animation: kdmPing 1.7s infinite; }

/* ---------- animated aurora background ---------- */
.elementor-element.kdm-aurora { position: relative; overflow: hidden; isolation: isolate; }
.elementor-element.kdm-aurora::before, .elementor-element.kdm-aurora::after {
  content: ''; position: absolute; z-index: 0; display: block; min-height: 0; border-radius: 50%; filter: blur(70px); opacity: .6; pointer-events: none; will-change: transform;
}
.elementor-element.kdm-aurora::before { width: min(46vw, 640px); height: min(46vw, 640px); right: -8%; top: -22%; left: auto; bottom: auto; background: radial-gradient(circle, rgba(200,150,62,.42), transparent 66%); animation: kdmDrift 16s ease-in-out infinite alternate; }
.elementor-element.kdm-aurora::after  { width: min(42vw, 560px); height: min(42vw, 560px); left: -10%; bottom: -28%; right: auto; top: auto; background: radial-gradient(circle, rgba(22,112,118,.38), transparent 66%); animation: kdmDrift2 21s ease-in-out infinite alternate; }
.elementor-element.kdm-aurora > * { position: relative; z-index: 1; }

/* ---------- cards ---------- */
.elementor-element.kdm-card { position: relative; transition: translate .45s var(--kdm-e), box-shadow .45s ease, border-color .3s ease; }
.elementor-element.kdm-card::before {
  content: ''; position: absolute; display: block; min-height: 0; width: auto; height: auto; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 2;
  background: linear-gradient(120deg, #C8963E, #469397 50%, #C8963E); background-size: 220% 220%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s ease; animation: kdmShift 4s linear infinite;
}
.elementor-element.kdm-card:hover::before { opacity: 1; }
.elementor-element.kdm-card:hover { translate: 0 -8px; box-shadow: 0 26px 60px rgba(10,61,64,.16) !important; }
.elementor-element.kdm-tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px); }
.kdm-card .elementor-icon { transition: transform .45s var(--kdm-e), background-color .3s ease; }
.kdm-card:hover .elementor-icon { transform: rotate(-7deg) scale(1.1); background-color: #C8963E !important; }
.kdm-card:hover .elementor-icon i, .kdm-card:hover .elementor-icon svg { color: #fff !important; fill: #fff !important; }
.kdm-card .elementor-icon-box-title, .kdm-card .elementor-heading-title { transition: color .3s ease; }
.kdm-card:hover .kdm-num .elementor-heading-title { color: rgba(200,150,62,.5) !important; }

/* ---------- buttons ---------- */
.kdm-shine .elementor-button { position: relative; overflow: hidden; transition: transform .35s var(--kdm-e), box-shadow .35s ease, background-color .25s ease; }
.kdm-shine .elementor-button::before { content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); }
.kdm-shine .elementor-button:hover { transform: translateY(-3px); }
.kdm-shine .elementor-button:hover::before { animation: kdmShine .85s ease; }
.kdm-pulse .elementor-button { animation: kdmPulse 2.4s infinite; }
.kdm-pulse .elementor-button:hover { animation: none; }

/* ---------- connected steps ---------- */
.elementor-element.kdm-steps { position: relative; }
.elementor-element.kdm-steps::before {
  content: ''; position: absolute; display: block; min-height: 0; width: auto; height: 3px; left: 14%; right: 14%; top: 62px; z-index: 0; border-radius: 3px;
  background: repeating-linear-gradient(90deg, #C8963E 0 12px, transparent 12px 22px);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--kdm-e) .35s;
}
html:not(.kdm-js) .elementor-element.kdm-steps::before, body.elementor-editor-active .elementor-element.kdm-steps::before, .elementor-element.kdm-steps.kdm-in::before { transform: scaleX(1); }
.elementor-element.kdm-steps > .elementor-element, .elementor-element.kdm-steps > .e-con-inner > .elementor-element { position: relative; z-index: 1; }


/* ---------- vertical accent line ---------- */
.elementor-element.kdm-line { position: relative; padding-left: 36px !important; }
.elementor-element.kdm-line::before { content: ''; position: absolute; display: block; min-height: 0; width: 4px; height: auto; left: 0; top: 6px; bottom: 6px; border-radius: 4px; background: linear-gradient(#C8963E, #469397); transform: scaleY(0); transform-origin: top; transition: transform 1.3s var(--kdm-e) .2s; }
html:not(.kdm-js) .elementor-element.kdm-line::before, body.elementor-editor-active .elementor-element.kdm-line::before, .elementor-element.kdm-line.kdm-in::before { transform: scaleY(1); }

/* ---------- parallax + float helpers ---------- */
.kdm-par { translate: 0 var(--kdm-py, 0px); will-change: translate; }
.kdm-floaty { animation: kdmFloat 6s ease-in-out infinite; }

/* ---------- marquee ---------- */
.kdm-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.kdm-marquee__track { display: flex; gap: 14px; width: max-content; animation: kdmScroll 42s linear infinite; }
.kdm-marquee:hover .kdm-marquee__track { animation-play-state: paused; }
.kdm-tag { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding: 11px 20px; border-radius: 999px; background: #fff; border: 1px solid #DDE1E0; color: #0A3D40; font: 600 14px 'Plus Jakarta Sans', sans-serif; box-shadow: 0 2px 8px rgba(10,61,64,.05); transition: transform .3s var(--kdm-e), border-color .3s; }
.kdm-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #C8963E; }
.kdm-tag:hover { transform: translateY(-3px); border-color: #C8963E; }

/* ---------- hero illustration ---------- */
.kdm-art { position: relative; width: 100%; max-width: 540px; margin: 0 auto; aspect-ratio: 1 / 1.04; font-family: 'Inter', sans-serif; }
.kdm-art__ring { position: absolute; inset: 7%; border: 2px dashed rgba(10,61,64,.2); border-radius: 50%; animation: kdmSpin 55s linear infinite; }
.kdm-art__ring--2 { inset: -1%; border-color: rgba(200,150,62,.34); animation-duration: 80s; animation-direction: reverse; }
.kdm-art__card { position: absolute; inset: 12% 7% 10%; padding: 26px; border-radius: 28px; color: #fff; overflow: hidden; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(135deg, #0A3D40, #0E5255 55%, #125B5F); box-shadow: 0 32px 80px rgba(10,61,64,.3); animation: kdmFloat 7s ease-in-out infinite; }
.kdm-art__card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% 0%, rgba(200,150,62,.38), transparent 55%); }
.kdm-art__card > * { position: relative; z-index: 1; }
.kdm-art__top { display: flex; justify-content: space-between; align-items: center; font: 700 15px 'Plus Jakarta Sans', sans-serif; }
.kdm-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #EDCD8B; }
.kdm-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #C8963E; animation: kdmPing 1.6s infinite; }
.kdm-art__row { display: flex; align-items: center; gap: 18px; }
.kdm-ringsvg { width: 112px; height: 112px; flex: none; transform: rotate(-90deg); }
.kdm-ringsvg circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.kdm-ringsvg .t { stroke: rgba(255,255,255,.16); }
.kdm-ringsvg .v { stroke: #EDCD8B; stroke-dasharray: 289; stroke-dashoffset: 289; animation: kdmRing 3.4s var(--kdm-e) infinite alternate; }
.kdm-art__big b { display: block; font: 800 40px/1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.03em; }
.kdm-art__big span { font-size: 13px; color: #C7E0E0; }
.kdm-bars { display: flex; align-items: flex-end; gap: 9px; height: 96px; margin-top: auto; }
.kdm-bars i { flex: 1; border-radius: 7px 7px 0 0; background: linear-gradient(#EDCD8B, #C8963E); height: 24%; animation: kdmBar 2.8s ease-in-out infinite alternate; }
.kdm-bars i:nth-child(2) { animation-delay: -.5s } .kdm-bars i:nth-child(3) { animation-delay: -1s } .kdm-bars i:nth-child(4) { animation-delay: -1.5s } .kdm-bars i:nth-child(5) { animation-delay: -2s } .kdm-bars i:nth-child(6) { animation-delay: -2.4s } .kdm-bars i:nth-child(7) { animation-delay: -.8s }
.kdm-art__note { font-size: 11px; color: rgba(255,255,255,.5); }
.kdm-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: #fff; color: #0A3D40; font: 700 13px 'Plus Jakarta Sans', sans-serif; box-shadow: 0 14px 40px rgba(10,61,64,.2); animation: kdmFloat 5.5s ease-in-out infinite; }
.kdm-chip i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #FCF7E8; color: #96702A; font-style: normal; font-size: 14px; }
.kdm-chip--a { left: -3%; top: 17%; } .kdm-chip--b { right: -3%; bottom: 14%; animation-delay: -2.6s; }
/* checklist (credentialing) */
.kdm-list { display: grid; gap: 9px; }
.kdm-check { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 13px; background: rgba(255,255,255,.09); font-size: 13.5px; opacity: 0; animation: kdmItem 10s infinite; }
.kdm-check:nth-child(1) { animation-delay: .2s } .kdm-check:nth-child(2) { animation-delay: 1.2s } .kdm-check:nth-child(3) { animation-delay: 2.2s } .kdm-check:nth-child(4) { animation-delay: 3.2s }
.kdm-check svg { width: 20px; height: 20px; flex: none; }
.kdm-check .c { fill: #C8963E; } .kdm-check .m { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.kdm-prog { height: 8px; border-radius: 8px; background: rgba(255,255,255,.14); overflow: hidden; margin-top: auto; }
.kdm-prog i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #EDCD8B, #C8963E); animation: kdmFill 10s var(--kdm-e) infinite; }
/* chat (staffing) */
.kdm-chat { display: grid; gap: 10px; }
.kdm-bubble { max-width: 80%; padding: 11px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; opacity: 0; animation: kdmItem 11s infinite; }
.kdm-bubble--l { background: rgba(255,255,255,.13); border-bottom-left-radius: 4px; }
.kdm-bubble--r { margin-left: auto; background: #C8963E; border-bottom-right-radius: 4px; }
.kdm-bubble:nth-child(1) { animation-delay: .2s } .kdm-bubble:nth-child(2) { animation-delay: 1.6s } .kdm-bubble:nth-child(3) { animation-delay: 3s } .kdm-bubble:nth-child(4) { animation-delay: 4.4s }
.kdm-typing { display: inline-flex; gap: 5px; margin-top: auto; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.12); width: fit-content; }
.kdm-typing i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: kdmDot 1.1s infinite; }
.kdm-typing i:nth-child(2) { animation-delay: .15s } .kdm-typing i:nth-child(3) { animation-delay: .3s }
/* chart (marketing) */
.kdm-chart { width: 100%; height: 120px; overflow: visible; }
.kdm-chart .l { fill: none; stroke: #EDCD8B; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 460; stroke-dashoffset: 460; animation: kdmLine 4.2s var(--kdm-e) infinite alternate; }
.kdm-chart .a { fill: url(#kdmg); opacity: 0; animation: kdmFade 4.2s ease infinite alternate; }
.kdm-rank { display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; border-radius: 13px; background: rgba(255,255,255,.09); font-size: 13.5px; }
.kdm-rank b { color: #EDCD8B; font-family: 'Plus Jakarta Sans', sans-serif; }

/* ---------- forms, contact cards, map ---------- */
.kdm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.kdm-form { gap: 16px; }
.kdm-form__foot { margin: 0; font-size: 12.5px; color: #616F6E; text-align: center; }
.kdm-form .kd-form__msg:empty { display: none; }
.kdm-form .kd-form__msg.is-ok { background: #FCF7E8; border: 1px solid #F5E6C2; color: #7A5A20; padding: 12px 14px; border-radius: 12px; animation: kdmPop .6s var(--kdm-e); }
.kdm-form .kd-form__msg.is-err { background: #FDECEA; border: 1px solid #F5B7B1; color: #B3261E; padding: 12px 14px; border-radius: 12px; }
@media (max-width: 600px) { .kdm-form .kd-form__row { grid-template-columns: 1fr; } }
.kdm-contacts { display: grid; gap: 14px; }
.kdm-contact { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid #DDE1E0; text-decoration: none; box-shadow: 0 2px 8px rgba(10,61,64,.05); transition: transform .4s var(--kdm-e), box-shadow .4s ease, border-color .3s ease; }
.kdm-contact:hover { transform: translateX(6px); border-color: #C8963E; box-shadow: 0 14px 36px rgba(10,61,64,.12); }
.kdm-contact__ico { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #E4EFEF; color: #0A3D40; transition: background .3s, color .3s, transform .4s var(--kdm-e); }
.kdm-contact:hover .kdm-contact__ico { background: #C8963E; color: #fff; transform: rotate(-8deg) scale(1.08); }
.kdm-contact__ico svg { width: 22px; height: 22px; }
.kdm-contact small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #616F6E; font-weight: 700; }
.kdm-contact b { display: block; font: 700 17px 'Plus Jakarta Sans', sans-serif; color: #0A3D40; word-break: break-word; }
.kdm-map { margin-top: 18px; border-radius: 20px; overflow: hidden; border: 1px solid #DDE1E0; box-shadow: 0 10px 30px rgba(10,61,64,.09); aspect-ratio: 16 / 10; }
.kdm-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- keyframes ---------- */
@keyframes kdmPop { 0% { opacity: 0; transform: scale(.94) } 100% { opacity: 1; transform: scale(1) } }
@keyframes kdmShift  { 0% { background-position: 0% 50% } 100% { background-position: 100% 50% } }
@keyframes kdmPing   { 0% { box-shadow: 0 0 0 0 rgba(200,150,62,.6) } 70%, 100% { box-shadow: 0 0 0 11px rgba(200,150,62,0) } }
@keyframes kdmDrift  { from { transform: translate(0, 0) scale(1) } to { transform: translate(-70px, 60px) scale(1.18) } }
@keyframes kdmDrift2 { from { transform: translate(0, 0) scale(1) } to { transform: translate(80px, -50px) scale(1.15) } }
@keyframes kdmShine  { to { left: 160% } }
@keyframes kdmPulse  { 0% { box-shadow: 0 0 0 0 rgba(200,150,62,.55) } 70%, 100% { box-shadow: 0 0 0 18px rgba(200,150,62,0) } }
@keyframes kdmBeat   { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.09) } }
@keyframes kdmFloat  { 0%, 100% { translate: 0 0 } 50% { translate: 0 -14px } }
@keyframes kdmSpin   { to { transform: rotate(360deg) } }
@keyframes kdmScroll { to { transform: translateX(-50%) } }
@keyframes kdmRing   { to { stroke-dashoffset: 6 } }
@keyframes kdmBar    { to { height: var(--h, 70%) } }
@keyframes kdmItem   { 0% { opacity: 0; translate: 0 12px } 6%, 84% { opacity: 1; translate: 0 0 } 94%, 100% { opacity: 0; translate: 0 -6px } }
@keyframes kdmFill   { 0% { width: 6% } 40%, 85% { width: 92% } 100% { width: 6% } }
@keyframes kdmDot    { 0%, 60%, 100% { translate: 0 0; opacity: .5 } 30% { translate: 0 -6px; opacity: 1 } }
@keyframes kdmLine   { to { stroke-dashoffset: 0 } }
@keyframes kdmFade   { to { opacity: .55 } }

/* ---------- accessibility: no motion if the visitor asks for it ---------- */
@media (prefers-reduced-motion: reduce) {
  html.kdm-js body :is(.kdm-up, .kdm-left, .kdm-right, .kdm-zoom, .kdm-fade) { opacity: 1 !important; translate: none !important; scale: none !important; }
  html.kdm-js body .kdm-split .kdm-w > span { translate: none !important; }
  .kdm-art *, .kdm-art, .kdm-gt, .kdm-gt-light, .kdm-marquee__track, .kdm-dot, .kdm-pulse .elementor-button, .elementor-element.kdm-aurora::before, .elementor-element.kdm-aurora::after, .kdm-stepnum .elementor-heading-title { animation: none !important; }
  .kdm-check, .kdm-bubble { opacity: 1 !important; }
  .kdm-ringsvg .v { stroke-dashoffset: 6; } .kdm-chart .l { stroke-dashoffset: 0; } .kdm-bars i { height: var(--h, 70%); }
}
@media (max-width: 767px) {
  .elementor-element.kdm-steps::before { display: none; }
  .kdm-chip { transform: scale(.85); } .kdm-chip--a { left: 0; } .kdm-chip--b { right: 0; }
}

/* ---------- native (editable) marquee, pills, map box ---------- */
.elementor-element.kdm-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.elementor-element.kdm-marquee__track { width: max-content !important; max-width: none !important; flex-wrap: nowrap !important; animation: kdmScroll 42s linear infinite; }
.elementor-element.kdm-marquee:hover .kdm-marquee__track { animation-play-state: paused; }
.kdm-pill .elementor-heading-title { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding: 11px 20px; border-radius: 999px; background: #fff; border: 1px solid #DDE1E0; box-shadow: 0 2px 8px rgba(10,61,64,.05); transition: transform .3s var(--kdm-e), border-color .3s ease; }
.kdm-pill .elementor-heading-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #C8963E; flex: none; }
.kdm-pill .elementor-heading-title a { color: inherit; text-decoration: none; }
.kdm-pill:hover .elementor-heading-title { transform: translateY(-3px); border-color: #C8963E; }
.elementor-element.kdm-mapbox { overflow: hidden; border: 1px solid #DDE1E0; box-shadow: 0 10px 30px rgba(10,61,64,.09); }
.elementor-element.kdm-card .elementor-icon-box-wrapper { align-items: center; }
@media (prefers-reduced-motion: reduce) { .elementor-element.kdm-marquee__track { animation: none !important; flex-wrap: wrap !important; width: auto !important; } }

.kdm-stepnum .elementor-heading-title { animation: kdmBeat 2.8s ease-in-out infinite; }
/* hero illustration floats as one smooth layer, so its text never jitters */
.elementor-widget-image.kdm-float img { animation: kdmFloat 8s ease-in-out infinite; will-change: translate; backface-visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .elementor-widget-image.kdm-float img { animation: none; } }
