/* ==========================================================
   Who Gets The Most Out Of It — Elementor Widget styles
   All selectors are scoped under .wgtmoi-widget and prefixed
   with wgtmoi- to avoid clashing with theme / page styles.
========================================================== */

.wgtmoi-widget{
  --bg: #eef1f7;
  --ink: #1c2340;
  --ops: #4fc3e8;
  --ops-dark: #2fa9d1;
  --clients: #3b5bdb;
  --attorneys: #1e2a78;
  --card: #ffffff;
  --ring: #93a3d6;

  position:relative;
  background: var(--bg);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  overflow-x:hidden;
}

.wgtmoi-widget *{ box-sizing: border-box; }

.wgtmoi-stage{
  position:relative;
  width:100%;
  max-width:1250px;
  margin:0 auto;
  aspect-ratio: 1800 / 700;
  padding: 20px 0 0;
}

.wgtmoi-title{
  text-align:center;
  font-size: clamp(20px, 3vw, 34px);
  font-weight:600;
  color: #26307a;
  letter-spacing:.2px;
  margin: 8px 0 0;
  opacity:0;
  animation: wgtmoiFadeDown .7s ease forwards .1s;
}

@keyframes wgtmoiFadeDown{
  from{ opacity:0; transform:translateY(-10px); }
  to{ opacity:1; transform:translateY(0); }
}

.wgtmoi-wires{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:1;
}

.wgtmoi-wire{
  fill:none;
  stroke: var(--ring);
  stroke-width:2;
  stroke-dasharray: 3 7;
  opacity:.8;
  animation: wgtmoiMarch 6s linear infinite;
}

@keyframes wgtmoiMarch{
  to{ stroke-dashoffset: -100; }
}

.wgtmoi-node{
  position:absolute;
  transform: translate(-50%, -50%);
  z-index:3;
}

.wgtmoi-avatar{
  border-radius:50%;
  background: var(--card);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 6px 16px rgba(30,42,120,.14);
  position:relative;
  opacity:0;
  overflow:hidden;
  animation: wgtmoiPop .5s cubic-bezier(.2,.9,.3,1.3) forwards;
}

@keyframes wgtmoiPop{
  from{ opacity:0; transform: scale(.4); }
  to{ opacity:1; transform: scale(1); }
}

.wgtmoi-avatar svg{ width:58%; height:58%; }

.wgtmoi-avatar img.wgtmoi-avatar-img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;
}

.wgtmoi-avatar.wgtmoi-plain{ width:78px; height:78px; }
.wgtmoi-avatar.wgtmoi-focal{ width:92px; height:92px; }

/* rotating dashed ring for focal avatars */
.wgtmoi-ringwrap{
  position:absolute;
  inset:-14px;
  border-radius:50%;
  border:2px dashed var(--ring);
  animation: wgtmoiSpin 14s linear infinite;
  pointer-events:none;
}

@keyframes wgtmoiSpin{
  to{ transform: rotate(360deg); }
}

.wgtmoi-badge{
  position:absolute;
  transform: translate(-50%,-50%);
  padding:7px 16px;
  border-radius:999px;
  color:#fff;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  z-index:4;
  opacity:0;
  animation: wgtmoiFadeUp .5s ease forwards;
  transition: transform .25s ease, box-shadow .25s ease;
}

@keyframes wgtmoiFadeUp{
  from{ opacity:0; transform: translate(-50%,-40%); }
  to{ opacity:1; transform: translate(-50%,-50%); }
}

.wgtmoi-badge.wgtmoi-ops{ background: linear-gradient(135deg, var(--ops), var(--ops-dark)); }
.wgtmoi-badge.wgtmoi-clients{ background: var(--clients); }
.wgtmoi-badge.wgtmoi-attorneys{ background: var(--attorneys); }

.wgtmoi-group:hover .wgtmoi-badge{
  transform: translate(-50%,-50%) scale(1.06);
}

.wgtmoi-callout{
  position:absolute;
  max-width: 250px;
  background: var(--card);
  border-radius:10px;
  padding:14px 16px;
  font-size:13.5px;
  line-height:1.45;
  color:#3a3f55;
  box-shadow: 0 12px 30px rgba(20,30,90,.16);
  z-index:5;
  opacity:0;
  transform: translateY(8px) scale(.96);
  pointer-events:none;
  transition: opacity .35s cubic-bezier(.2,.8,.3,1), transform .35s cubic-bezier(.2,.8,.3,1);
}

.wgtmoi-group:hover .wgtmoi-callout,
.wgtmoi-group:focus-within .wgtmoi-callout{
  opacity:1;
  transform: translateY(0) scale(1);
}

.wgtmoi-group:hover .wgtmoi-ringwrap{
  border-color: currentColor;
}

.wgtmoi-group.wgtmoi-ops-left .wgtmoi-ringwrap, .wgtmoi-group.wgtmoi-ops-right .wgtmoi-ringwrap{ color: var(--ops-dark); }
.wgtmoi-group.wgtmoi-clients .wgtmoi-ringwrap{ color: var(--clients); }
.wgtmoi-group.wgtmoi-attorneys .wgtmoi-ringwrap{ color: var(--attorneys); }

.wgtmoi-group:hover .wgtmoi-avatar.wgtmoi-focal{
  box-shadow: 0 10px 24px rgba(30,42,120,.24);
}

.wgtmoi-hint{
  text-align:center;
  font-size:12.5px;
  color:#7480a8;
  margin-top:6px;
  opacity:0;
  animation: wgtmoiFadeDown .7s ease forwards .8s;
}

.wgtmoi-widget.wgtmoi-no-anim .wgtmoi-wire,
.wgtmoi-widget.wgtmoi-no-anim .wgtmoi-ringwrap,
.wgtmoi-widget.wgtmoi-no-anim .wgtmoi-avatar,
.wgtmoi-widget.wgtmoi-no-anim .wgtmoi-badge,
.wgtmoi-widget.wgtmoi-no-anim .wgtmoi-title,
.wgtmoi-widget.wgtmoi-no-anim .wgtmoi-hint{ animation: none !important; opacity:1 !important; transform:none !important; }
.wgtmoi-widget.wgtmoi-no-anim .wgtmoi-callout{ transition: none; }

@media (prefers-reduced-motion: reduce){
  .wgtmoi-wire, .wgtmoi-ringwrap, .wgtmoi-avatar, .wgtmoi-badge, .wgtmoi-title, .wgtmoi-hint{ animation: none !important; }
  .wgtmoi-callout{ transition: none; }
}

/* ==========================================================
   MOBILE TIMELINE LAYOUT
========================================================== */
@media (max-width:700px){
  .wgtmoi-title{
    padding:0 20px;
    margin:24px 0 8px;
    font-size:26px;
  }
}

.wgtmoi-m-wrap{
  width:100%;
  max-width:420px;
  margin:0 auto;
  padding:10px 18px 40px;
}

.wgtmoi-m-cluster{
  position:relative;
  height:280px;
  margin-bottom:48px;
}

.wgtmoi-m-cluster.wgtmoi-tall{ height:300px; }

.wgtmoi-m-cluster:last-child{ margin-bottom:0; }

.wgtmoi-m-connector{
  width:2px;
  height:34px;
  margin:0 auto;
  border-left:2px dashed var(--ring);
  opacity:.9;
}

.wgtmoi-m-wire{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:1;
  overflow:visible;
}

.wgtmoi-m-wire path{
  fill:none;
  stroke: var(--ring);
  stroke-width:2;
  stroke-dasharray:4 7;
  opacity:.85;
}

.wgtmoi-m-node{
  position:absolute;
  z-index:3;
}

.wgtmoi-m-avatar{
  border-radius:50%;
  background:var(--card);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 6px 16px rgba(30,42,120,.14);
  position:relative;
  overflow:hidden;
}

.wgtmoi-m-avatar svg{ width:58%; height:58%; }

.wgtmoi-m-avatar img.wgtmoi-avatar-img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;
}

.wgtmoi-m-avatar.wgtmoi-m-lg{ width:88px; height:88px; }
.wgtmoi-m-avatar.wgtmoi-m-sm{ width:56px; height:56px; }

.wgtmoi-m-ring{
  position:absolute;
  inset:-10px;
  border-radius:50%;
  border:2px dashed var(--ring);
  animation: wgtmoiSpin 14s linear infinite;
  pointer-events:none;
}

.wgtmoi-m-badge{
  position:absolute;
  z-index:4;
  padding:9px 18px;
  border-radius:999px;
  color:#fff;
  font-size:16px;
  font-weight:600;
  white-space:nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

.wgtmoi-m-badge.wgtmoi-ops{ background: linear-gradient(135deg, var(--ops), var(--ops-dark)); }
.wgtmoi-m-badge.wgtmoi-clients{ background: var(--clients); }
.wgtmoi-m-badge.wgtmoi-attorneys{ background: var(--attorneys); }

.wgtmoi-m-callout{
  position:absolute;
  background: var(--card);
  border-radius:10px;
  padding:14px 16px;
  font-size:14.5px;
  line-height:1.5;
  color:#3a3f55;
  box-shadow: 0 12px 30px rgba(20,30,90,.14);
  z-index:4;
}

.wgtmoi-desktop-layout{
  display:block;
}

.wgtmoi-mobile-layout{
  display:none;
}

@media(max-width:768px){
  .wgtmoi-desktop-layout{
    display:none;
  }
  .wgtmoi-mobile-layout{
    display:block;
  }
}
