/* ==========================================================================
   SIGMA BROOKS — Home hero (light)
   Elementor: Container (full width, bg #F7F9FC) → paste this into its Custom CSS.
   The dashboard scales with its own width (container query units), so the
   whole visual can live in a single HTML widget at any column width.
   ========================================================================== */

.sbhero {
  --sbhero-wrap: 1760px;           /* matches the header width so the text aligns with the logo */
  --sbhero-ink: #0A1F38;
  --sbhero-text-2: #3C4A5E;
  --sbhero-text-3: #64748B;
  --sbhero-photo: none;            /* optional: url(/assets/hero-office.jpg) — shown blurred on the right */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--sbhero-ink);
  background: linear-gradient(90deg, #FFFFFF 0%, #FAFBFD 38%, #EFF3F8 70%, #E6ECF3 100%);
}

/* ---------- Background: soft office light + particle wave ---------- */
.sbhero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sbhero-photo { position: absolute; inset: 0 0 0 42%; background: var(--sbhero-photo) center / cover no-repeat; filter: blur(6px) saturate(.9); opacity: .55; }
/* suggestion of tall office windows + city light, fading in from the left */
.sbhero-windows {
  position: absolute; top: 0; bottom: 0; left: 48%; right: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(214, 224, 236, .7) 78%, rgba(226, 233, 242, .9) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .95) 0 110px, rgba(196, 208, 224, .55) 110px 122px, rgba(255, 255, 255, .9) 122px 128px),
    linear-gradient(180deg, #F4F7FB, #DCE5EF);
  filter: blur(10px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 100%);
  opacity: .9;
}
.sbhero-plant { position: absolute; left: 44%; top: 30%; width: 220px; height: 360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(92, 130, 88, .35), rgba(92, 130, 88, 0)); filter: blur(28px); }
.sbhero-wave { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Layout ---------- */
.sbhero-inner {
  max-width: var(--sbhero-wrap);
  margin-inline: auto;
  padding: 72px var(--sb-gutter) 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 32px;
  align-items: center;
  min-height: min(640px, calc(100vh - 300px));
}
.sbhero-copy { position: relative; z-index: 2; }

.sbhero-eyebrow { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; font: 600 .8125rem/1 var(--sb-font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--sbhero-text-2); }
.sbhero-eyebrow span { width: 50px; height: 2px; background: var(--sb-orange); border-radius: 2px; }

.sbhero-title {
  font-family: var(--sb-font-heading);
  font-stretch: 104%;
  font-weight: 500;
  font-size: clamp(2.75rem, 4.35vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--sbhero-ink);
  text-wrap: balance;
}
.sbhero-title strong { font-weight: 700; color: var(--sb-orange); letter-spacing: -.03em; }

.sbhero-lede { margin: 24px 0 34px; max-width: 36rem; font-size: clamp(1.0625rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--sbhero-text-2); }

.sbhero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.sbhero-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 58px; padding: 0 28px; border-radius: 10px; font-weight: 600; font-size: 1.0625rem; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .25s, transform .2s; }
.sbhero-btn i { transition: transform .25s; }
.sbhero-btn:hover i { transform: translateX(4px); }
.sbhero-btn--primary { background: linear-gradient(180deg, #FF9B26, #FF7E00); color: #0A1F38; box-shadow: 0 12px 26px -12px rgba(255, 126, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.sbhero-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(255, 126, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.sbhero-btn--link { padding: 0 4px; height: 58px; color: var(--sbhero-ink); }
.sbhero-btn--link:hover { color: #0B63BE; }

.sbhero-pillars { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: 44px; max-width: 100%; }
.sbhero-pillars li { display: flex; align-items: center; gap: 16px; padding: 4px 32px; min-width: 0; }
.sbhero-pillars li:first-child { padding-left: 0; }
.sbhero-pillars li + li { border-left: 1px solid #D5DDE8; }
.sbhero-pillars svg { width: 34px; height: 34px; flex-shrink: 0; fill: none; stroke: var(--sbhero-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sbhero-pillars strong { display: block; font-weight: 600; font-size: .9375rem; color: var(--sbhero-ink); white-space: nowrap; }
.sbhero-pillars small { display: block; font-size: .875rem; color: var(--sbhero-text-3); margin-top: 2px; }

/* ---------- Visual: laptop on a white plinth ---------- */
.sbhero-visual { position: relative; aspect-ratio: 16 / 11; margin-right: calc(var(--sb-gutter) * -1); perspective: 2400px; }
.sbhero-device { position: absolute; left: 5%; right: 1%; top: 4%; transform: rotateY(-13deg) rotateX(3deg) rotateZ(-1.6deg); transform-origin: 55% 70%; transform-style: preserve-3d; }
.sbhero-lid {
  position: relative;
  padding: 2%;
  border-radius: 22px 22px 8px 8px;
  background: linear-gradient(160deg, #2A303B 0%, #11151C 45%, #0A0D12 100%);
  box-shadow:
    inset 0 0 0 1.5px #3A4352,
    inset 0 2px 0 rgba(255, 255, 255, .1),
    0 40px 70px -30px rgba(10, 31, 56, .55),
    0 12px 24px -12px rgba(10, 31, 56, .35);
}
.sbhero-cam { position: absolute; top: .9%; left: 50%; width: 5px; height: 5px; transform: translateX(-50%); background: #2B3340; border-radius: 50%; }
.sbhero-deck { position: relative; height: 18px; margin: 0 -5%; border-radius: 3px 3px 22px 22px / 3px 3px 14px 14px;
  background: linear-gradient(180deg, #F1F3F6 0%, #C9CED6 40%, #8E949D 85%, #6C727B 100%);
  box-shadow: inset 0 1px 0 #fff, 0 22px 26px -12px rgba(10, 31, 56, .45); }
.sbhero-deck::before { content: ""; position: absolute; top: 0; left: 50%; width: 14%; height: 45%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #AEB4BD, #D9DDE3); }

.sbhero-plinth {
  position: absolute; left: 12%; right: -14%; bottom: -12%; height: 30%;
  background:
    linear-gradient(180deg, #FFFFFF 0, #F6F8FB 8%, #E9EEF4 9%, #F3F6FA 40%, #E4EAF1 100%);
  box-shadow: inset 0 1px 0 #fff, 0 -2px 30px -10px rgba(10, 31, 56, .12);
  clip-path: polygon(3% 0, 100% 0, 100% 100%, 0 100%);
}
.sbhero-plinth::before { /* contact shadow under the laptop */
  content: ""; position: absolute; left: 6%; right: 22%; top: 0; height: 18%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(10, 31, 56, .28), transparent 70%); filter: blur(6px);
}

/* ---------- Dashboard (all sizes in em → scales with .sbhero-screen) ---------- */
.sbhero-screen {
  container-type: inline-size;
  position: relative; display: flex; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(30, 64, 130, .45), transparent 60%),
    linear-gradient(180deg, #0C1B33, #081326);
  color: #E2E8F0;
  font-family: var(--sb-font-body);
}
.sbd-side, .sbd-main { font-size: 1.5cqw; }
.sbhero-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 32%); }

.sbd-side { width: 9.2em; flex-shrink: 0; display: flex; flex-direction: column; gap: 1.6em; padding: 1.4em .8em; border-right: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .015); }
.sbd-mark { width: 2.3em; height: 2.3em; margin-left: .5em; }
.sbd-nav { display: grid; gap: .35em; }
.sbd-nav li { display: flex; align-items: center; gap: .7em; padding: .55em .7em; border-radius: .5em; font-size: .72em; color: #8C9BB0; }
.sbd-nav i { width: 1.1em; text-align: center; font-size: .95em; }
.sbd-nav li.is-active { background: rgba(255, 138, 0, .14); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 138, 0, .25); }
.sbd-nav li.is-active i { color: #FF8A00; }

.sbd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .95em; padding: 1.3em 1.4em 1.1em; }
.sbd-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; }
.sbd-title { font: 700 1.6em/1.1 var(--sb-font-heading); font-stretch: 100%; letter-spacing: -.01em; }
.sbd-sub { font-size: .72em; color: #8C9BB0; margin-top: .35em; }
.sbd-range { font-size: .72em; color: #C4CFDD; padding: .5em .85em; border: 1px solid rgba(255, 255, 255, .12); border-radius: .6em; white-space: nowrap; background: rgba(255, 255, 255, .03); }
.sbd-range i { font-size: .8em; margin-left: .5em; }

.sbd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75em; }
.sbd-kpi, .sbd-card { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)); border: 1px solid rgba(255, 255, 255, .08); border-radius: .75em; box-shadow: 0 .6em 1.4em -.8em rgba(0, 0, 0, .6); }
.sbd-kpi { padding: .85em .95em .45em; }
.sbd-kpi span { display: block; font-size: .72em; color: #9AA9BE; }
.sbd-kpi b { display: flex; align-items: center; gap: .35em; font: 700 1.45em/1.2 var(--sb-font-heading); font-stretch: 100%; margin: .25em 0 .15em; }
.sbd-kpi b em { font-style: normal; font-variant-numeric: tabular-nums; }
.sbd-kpi b i { font-size: .5em; }
.sbd-kpi .is-up { color: #22C55E; } .sbd-kpi .is-down { color: #FF8A00; }
.sbd-kpi svg { display: block; width: 100%; height: 2.1em; overflow: visible; }
.sbd-kpi polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

.sbd-row { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: .75em; }
.sbd-card { padding: .95em 1.05em .8em; display: flex; flex-direction: column; min-height: 0; }
.sbd-card__head { display: flex; justify-content: space-between; align-items: center; gap: .6em; }
.sbd-card__head p, .sbd-card__title { font-weight: 600; font-size: .85em; }
.sbd-legend { font-size: .64em; color: #9AA9BE; display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; }
.sbd-legend i { width: .6em; height: .6em; border-radius: 50%; display: inline-block; margin-left: .5em; }
.sbd-legend .is-blue { background: #3B8FF0; } .sbd-legend .is-orange { background: #FF8A00; }
.sbd-plot { flex: 1; min-height: 0; display: flex; gap: .6em; padding-top: .8em; }
.sbd-yaxis { display: flex; flex-direction: column; justify-content: space-between; font-size: .55em; color: #6B7B93; text-align: right; padding-bottom: .1em; }
.sbd-bars { flex: 1; display: flex; align-items: flex-end; gap: .6em; padding: 0 .3em; min-height: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 25%); }
.sbd-bars span { flex: 1; height: var(--h); border-radius: .22em .22em 0 0; transform-origin: bottom;
  background: linear-gradient(180deg, #4AA0FF 0%, #1E5FD8 100%); box-shadow: 0 0 .8em -.2em rgba(59, 143, 240, .6); }
.sbd-bars span.g { background: linear-gradient(180deg, #A7B1C0 0%, #6B7686 100%); box-shadow: none; }
.sbd-bars span.f { background: linear-gradient(180deg, #FFB547 0%, #FF7A00 100%); box-shadow: 0 0 1em -.1em rgba(255, 138, 0, .65); }
.sbd-months { display: flex; justify-content: space-between; margin: .45em 0 0 2.2em; font-size: .55em; color: #6B7B93; }
.sbd-insights ul { display: grid; gap: .95em; margin-top: .85em; flex: 1; align-content: start; }
.sbd-insights li { display: flex; gap: .75em; align-items: flex-start; font-size: .68em; line-height: 1.45; color: #C4CFDD; }
.sbd-insights i { font-size: 1.25em; color: #C4CFDD; width: 1.2em; text-align: center; margin-top: .1em; }
.sbd-more { display: flex; justify-content: space-between; align-items: center; margin-top: .6em; padding: .55em .8em; font-size: .64em; font-weight: 600; border-radius: .5em; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); }

/* entrance motion (js adds .is-in) */
.sbhero-screen:not(.is-in) .sbd-bars span { transform: scaleY(0); }
.sbhero-screen:not(.is-in) .sbd-kpi polyline { stroke-dashoffset: 1; }
.sbhero-screen.is-in .sbd-bars span { transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 55ms + 250ms); }
.sbhero-screen.is-in .sbd-kpi polyline { transition: stroke-dashoffset 1.4s ease-out .2s; }
.sbhero-device { animation: sbhero-float 9s ease-in-out infinite; }
@keyframes sbhero-float { 50% { transform: rotateY(-13deg) rotateX(3deg) rotateZ(-1.6deg) translateY(-8px); } }

/* ---------- Trusted-by strip ---------- */
.sbhero-trust {
  position: relative; z-index: 2;
  padding: 22px max(var(--sb-gutter), calc((100% - var(--sbhero-wrap)) / 2 + var(--sb-gutter))) 34px;
  background: rgba(255, 255, 255, .88);
  border-top: 1px solid #E2E8F0;
}
@supports (backdrop-filter: blur(1px)) { .sbhero-trust { backdrop-filter: blur(8px); } }
.sbhero-trust__label { font: 600 .8125rem/1 var(--sb-font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--sbhero-text-2); margin-bottom: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1600px) {
  .sbhero-pillars li { padding: 4px 18px; gap: 12px; }
  .sbhero-pillars svg { width: 30px; height: 30px; }
  .sbhero-pillars strong { font-size: .875rem; } .sbhero-pillars small { font-size: .8125rem; }
}
@media (max-width: 1400px) {
  .sbhero-btn { height: 54px; padding: 0 22px; font-size: 1rem; }
  .sbhero-btn--link { padding: 0 4px; }
  .sbhero-ctas { gap: 16px 28px; }
}
@media (max-width: 1280px) {
  .sbhero-inner { gap: 24px; }
  .sbhero-pillars li { padding: 4px 14px; gap: 10px; }
  .sbhero-pillars svg { width: 26px; height: 26px; }
}
@media (max-width: 1240px) {
  .sbhero-pillars li { padding: 4px 10px; }
  .sbhero-pillars li:first-child { padding-left: 0; }
}
@media (max-width: 1100px) {
  .sbhero-inner { grid-template-columns: 1fr; padding-top: 56px; min-height: 0; }
  .sbhero-copy { max-width: 760px; }
  .sbhero-visual { width: min(100%, 820px); margin: 12px auto 0; }
  .sbhero-windows { left: 0; opacity: .5; }
  .sbhero-plant { display: none; }
}
@media (max-width: 767px) {
  .sbhero-inner { padding-top: 40px; gap: 12px; }
  .sbhero-eyebrow { font-size: .6875rem; letter-spacing: .22em; gap: 12px; }
  .sbhero-eyebrow span { width: 32px; }
  .sbhero-title { font-size: clamp(2.4rem, 11vw, 3.25rem); }
  .sbhero-lede { margin: 20px 0 26px; }
  .sbhero-ctas { gap: 4px; }
  .sbhero-btn--primary { width: 100%; height: 54px; }
  .sbhero-btn--link { height: 48px; }
  .sbhero-pillars { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
  .sbhero-pillars li { padding: 0 !important; border: 0 !important; }
  .sbhero-visual { margin-right: -8px; }
  .sbhero-trust__label { font-size: .6875rem; letter-spacing: .2em; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .sbhero-device { animation: none; }
  .sbhero-screen .sbd-bars span, .sbhero-screen .sbd-kpi polyline { transition: none !important; transform: none !important; stroke-dashoffset: 0 !important; }
}
