/*
 * /services/ hub hero — connected-services orbital illustration (inc/services-hub-orbital.php).
 *
 * Loaded on the service archive and in the Elementor preview only. Everything is scoped to `.svch-orb`,
 * except the column rules at the top, which key on `.svch-orb-col` — a class only the hub's hero media
 * column (`hdabcde`, template #6083) carries. The other seven page types that share `.svc-hero` are
 * untouched.
 *
 * Palette: Saiftec navy #170D3D, cyan #0AA3D6 (lightened to #65D6EF / #9CEEFF for lines and text on
 * navy), purple-tinted muted text. Type: Heebo (labels, titles), Montserrat (descriptions).
 * The approved mockup was drawn small (7-10px labels); sizes here keep its proportions but never go
 * below 11px for readable text. The one exception is the decorative tagline under the logo (7-9px,
 * as in the mockup), which sits inside the hub button whose accessible name is set by aria-label.
 */

/* ---------- The hero media column (hub only) ---------- */
.svc-hero .svc-hero__media.svch-orb-col { text-align: left; }
.svc-hero .svc-hero__media.svch-orb-col > .elementor-widget-shortcode { width: 100%; }
@media (max-width: 880px) {
	/* Shared hero CSS lifts the media above the copy on small screens; this illustration goes below. */
	.svc-hero .svc-hero__inner > .e-con.svc-hero__media.svch-orb-col { --order: 2; order: 2; margin-top: 8px; }
}

/* ---------- Component ---------- */
.svch-orb {
	--orb-cyan: #65d6ef;
	--orb-cyan-hi: #9ceeff;
	--orb-line: rgb(84 172 197 / 44%);
	--orb-line-on: rgb(101 214 239 / 85%);
	--orb-muted: #b4a6c7;
	--orb-head: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--orb-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	color: #fff;
	text-align: left;
	font-family: var(--orb-body);
}
.svch-orb *,
.svch-orb *::before,
.svch-orb *::after { box-sizing: border-box; }
.svch-orb [hidden] { display: none !important; }
.svch-orb p { margin: 0; }
.svch-orb .svch-icon { display: block; flex: none; width: 1em; height: 1em; }

.svch-orb__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 28px;
	margin-bottom: 6px;
}
.svch-orb__eyebrow {
	font-family: var(--orb-body);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #96c9d9;
}
.svch-orb__hint {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--orb-muted);
	white-space: nowrap;
}
.svch-orb__hint .svch-icon { width: 13px; height: 13px; color: #74cde2; }
.svch-orb__tools { display: flex; align-items: center; gap: 14px; flex: none; }

/* Pause / Play for the auto-highlight tour */
.svch-orb button.svch-orb__tour {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 32px;
	margin: 0;
	padding: 6px 12px 6px 10px;
	border: 1px solid rgb(114 185 204 / 35%);
	border-radius: 999px;
	background: rgb(16 25 47 / 70%);
	color: #cfe9f2;
	font-family: var(--orb-body);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color .2s ease, background .2s ease;
}
.svch-orb button.svch-orb__tour:hover { border-color: #7ed9ec; background: rgb(28 60 84 / 80%); color: #fff; }
.svch-orb button.svch-orb__tour:focus-visible { outline: 2px solid #9ae6f5; outline-offset: 3px; }
.svch-orb button.svch-orb__tour:focus:not(:focus-visible) { outline: none; }
.svch-orb .svch-orb__tourico { display: none; }
.svch-orb .svch-orb__tourico .svch-icon { width: 11px; height: 11px; fill: currentColor; stroke-width: 1.5; color: var(--orb-cyan); }
.svch-orb button.svch-orb__tour[data-state="playing"] .svch-orb__tourico--pause,
.svch-orb button.svch-orb__tour[data-state="paused"] .svch-orb__tourico--play { display: block; }

/* ---------- The diagram ---------- */
.svch-orb__system {
	position: relative;
	isolation: isolate;
	height: 540px;
}
.svch-orb__glow {
	position: absolute;
	inset: -12px -16px;
	z-index: -3;
	pointer-events: none;
	/* Cyan glow over a soft navy vignette: the vignette evens out the hero's diagonal overlay artwork,
	   whose lighter panel otherwise draws a hard corner behind the diagram. */
	background:
		radial-gradient(ellipse at 50% 50%, rgb(10 163 214 / 17%) 0%, rgb(10 163 214 / 9%) 31%, rgb(10 163 214 / 2%) 59%, transparent 74%),
		radial-gradient(ellipse at 50% 50%, rgb(20 11 52 / 72%) 0%, rgb(20 11 52 / 55%) 48%, rgb(20 11 52 / 0%) 72%);
}
.svch-orb__rings { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.svch-orb__rings > span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 94%;
	height: 86%;
	transform: translate(-50%, -50%);
	border: 1px solid rgb(110 215 238 / 9%);
	border-radius: 50%;
}
.svch-orb__rings > span:nth-child(2) { width: 76%; height: 68%; border-color: rgb(110 215 238 / 13%); }
.svch-orb__rings > span:nth-child(3) { width: 57%; height: 50%; border-color: rgb(115 214 234 / 18%); }
.svch-orb__rings > span:nth-child(4) {
	width: 40%;
	height: 35%;
	border-color: rgb(98 214 236 / 55%);
	box-shadow: 0 0 20px rgb(10 163 214 / 9%), inset 0 0 18px rgb(10 163 214 / 7%);
}
.svch-orb__wires {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}
.svch-orb__wire {
	fill: none;
	stroke: var(--orb-line);
	stroke-width: 1.15;
	stroke-linecap: round;
	transition: stroke .25s ease, opacity .25s ease, stroke-width .25s ease;
}
.svch-orb__wire.is-active { stroke: var(--orb-line-on); stroke-width: 1.5; }
.svch-orb__system.is-focused .svch-orb__wire:not(.is-active) { opacity: .3; }
.svch-orb__flow {
	fill: none;
	stroke: #bbf4ff;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-dasharray: 10 1000;
	animation: svch-orb-pulse .75s ease-out both;
}
@keyframes svch-orb-pulse {
	from { stroke-dashoffset: 0; opacity: 1; }
	to { stroke-dashoffset: -220; opacity: 0; }
}

/* Panels */
.svch-orb button.svch-orb__node {
	position: absolute;
	z-index: 2;
	left: var(--x);
	top: var(--y);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
	width: clamp(108px, 26%, 140px);
	min-height: 108px;
	margin: 0;
	padding: 14px 13px 15px;
	transform: translate(-50%, -50%);
	border: 1px solid rgb(83 114 138 / 52%);
	border-top-color: rgb(114 185 204 / 53%);
	border-radius: 8px;
	background: linear-gradient(145deg, #18243f, #11192f 70%, #0f152a);
	box-shadow: 0 4px 0 #090c20, 0 5px 0 rgb(76 129 146 / 30%), 0 12px 23px rgb(2 4 19 / 15%);
	color: #fff;
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.svch-orb button.svch-orb__node:hover {
	border-color: #7ed9ec;
	background: linear-gradient(145deg, #20314b, #132239 75%);
	color: #fff;
}
.svch-orb button.svch-orb__node[aria-pressed="true"],
.svch-orb button.svch-orb__node[aria-pressed="true"]:hover {
	border-color: #6ddbf0;
	background: linear-gradient(145deg, #1c3c54, #142840 75%);
	box-shadow: 0 4px 0 #071426, 0 5px 0 #509db3, 0 0 24px rgb(10 163 214 / 17%), 0 12px 24px rgb(1 5 21 / 24%);
}
.svch-orb .svch-orb__nodeicon { width: 21px; height: 21px; color: #5cbfda; stroke-width: 1.5; margin-bottom: 1px; }
.svch-orb .svch-orb__label {
	display: block;
	font-family: var(--orb-head);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -.1px;
	color: #e6ecf6;
}
.svch-orb .svch-orb__phrase {
	display: block;
	margin-top: -2px;
	font-family: var(--orb-head);
	font-size: 12px;
	line-height: 1.4;
	color: #84b3c7;
}
.svch-orb .svch-orb__dot {
	position: absolute;
	top: 11px;
	right: 9px;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #508096;
}
.svch-orb button.svch-orb__node[aria-pressed="true"] .svch-orb__nodeicon { color: var(--orb-cyan-hi); }
.svch-orb button.svch-orb__node[aria-pressed="true"] .svch-orb__label { color: #fff; }
.svch-orb button.svch-orb__node[aria-pressed="true"] .svch-orb__phrase { color: #91d9eb; }
.svch-orb button.svch-orb__node[aria-pressed="true"] .svch-orb__dot { background: #89e9ee; box-shadow: 0 0 7px rgb(126 242 240 / 67%); }

/* Hub */
.svch-orb button.svch-orb__hub {
	position: absolute;
	z-index: 3;
	top: 50%;
	left: 50%;
	width: clamp(108px, 27%, 150px);
	aspect-ratio: 1;
	margin: 0;
	padding: 4px;
	transform: translate(-50%, -50%);
	border: 1px solid rgb(115 192 212 / 36%);
	border-radius: 50%;
	background: linear-gradient(145deg, #23455b, #101d35 70%);
	box-shadow: 0 0 0 11px rgb(93 203 231 / 4%), 0 0 0 12px rgb(123 220 237 / 9%), 0 0 37px rgb(10 163 214 / 24%), 0 15px 30px rgb(0 9 28 / 33%);
	color: #fff;
	font: inherit;
	cursor: pointer;
	transition: box-shadow .2s ease;
}
.svch-orb button.svch-orb__hub:hover {
	background: linear-gradient(145deg, #23455b, #101d35 70%);
	box-shadow: 0 0 0 11px rgb(93 203 231 / 7%), 0 0 0 12px rgb(123 220 237 / 16%), 0 0 40px rgb(10 163 214 / 30%), 0 15px 30px rgb(0 9 28 / 33%);
}
.svch-orb .svch-orb__hubinner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 17px 13px;
	border-radius: 50%;
	background: radial-gradient(ellipse at 35% 12%, #1a3d55, #08172e 65%, #080f25);
	box-shadow: inset 0 1px 2px rgb(159 198 211 / 20%);
}
.svch-orb .svch-orb__logo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 56px;
	object-fit: contain;
	filter: drop-shadow(0 2px 3px rgb(0 0 0 / 13%));
}
.svch-orb .svch-orb__brand { font-family: var(--orb-head); font-size: 15px; font-weight: 600; text-align: center; }
.svch-orb .svch-orb__hubrule { display: block; width: 24px; height: 1px; margin: 6px 0 7px; background: rgb(104 210 234 / 50%); }
.svch-orb .svch-orb__hublabel {
	font-family: var(--orb-head);
	font-size: 9px;
	line-height: 1.4;
	letter-spacing: .1em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #9bc9db;
}
.svch-orb .svch-orb__point {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #5dbed2;
	box-shadow: 0 0 8px rgb(93 190 210 / 27%);
	pointer-events: none;
}
.svch-orb .svch-orb__point--1 { top: 36%; left: 63%; }
.svch-orb .svch-orb__point--2 { top: 64%; left: 37%; }
.svch-orb .svch-orb__point--3 { top: 21%; left: 31%; width: 3px; height: 3px; opacity: .45; }

/* Focus: visible on the dark hero */
.svch-orb button.svch-orb__node:focus-visible,
.svch-orb button.svch-orb__hub:focus-visible {
	outline: 2px solid #9ae6f5;
	outline-offset: 4px;
}
.svch-orb button.svch-orb__node:focus:not(:focus-visible),
.svch-orb button.svch-orb__hub:focus:not(:focus-visible) { outline: none; }

/* ---------- Caption (stable height) ---------- */
.svch-orb__caption {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgb(149 189 213 / 12%);
}
/* Tour progress: a thin line along the caption rule, one sweep per step; frozen while paused. */
.svch-orb__caption::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--orb-cyan);
	opacity: 0;
	transform: scaleX(0);
	transform-origin: left center;
	pointer-events: none;
}
.svch-orb.is-touring .svch-orb__caption.is-stepping::before {
	opacity: .7;
	animation: svch-orb-step var(--svch-orb-step, 4000ms) linear both;
}
.svch-orb.is-tour-paused .svch-orb__caption::before { animation-play-state: paused; }
@keyframes svch-orb-step { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.svch-orb__capicon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 32px;
	height: 32px;
	margin-top: 1px;
	border: 1px solid rgb(84 132 155 / 33%);
	border-radius: 8px;
	background: rgb(25 52 74 / 40%);
	color: #72d3e9;
}
.svch-orb__capicon .svch-icon { width: 17px; height: 17px; stroke-width: 1.5; }
.svch-orb__capbody { display: grid; flex: 1 1 auto; min-width: 0; }
.svch-orb__capsizer,
.svch-orb__caplive { grid-area: 1 / 1; }
.svch-orb__capsizer { display: grid; visibility: hidden; pointer-events: none; }
.svch-orb__capsizer > div { grid-area: 1 / 1; }
.svch-orb .svch-orb__captitle {
	display: block;
	font-family: var(--orb-head);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -.2px;
	color: #eee9f6;
}
.svch-orb .svch-orb__captext {
	margin-top: 5px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--orb-muted);
}

/* ---------- Responsive ---------- */
@media (min-width: 881px) and (max-width: 1099px) {
	.svch-orb__system { height: 500px; }
	.svch-orb button.svch-orb__node { width: 28%; min-height: 104px; padding: 13px 10px 14px; }
	.svch-orb .svch-orb__label { font-size: 13px; }
	.svch-orb .svch-orb__phrase { font-size: 11.5px; }
	.svch-orb .svch-orb__nodeicon { width: 19px; height: 19px; }
	.svch-orb__hint { display: none; }
	.svch-orb .svch-orb__captitle { font-size: 18px; }
}
@media (max-width: 699px) {
	.svch-orb__system { height: 540px; }
	.svch-orb button.svch-orb__node { top: var(--y-sm, var(--y)); }
	.svch-orb__hint { display: none; }
	.svch-orb__eyebrow { font-size: 11px; letter-spacing: .12em; }
	.svch-orb button.svch-orb__node { width: 31%; max-width: 132px; min-height: 104px; padding: 12px 9px 13px; gap: 6px; }
	.svch-orb .svch-orb__label { font-size: 13px; line-height: 1.3; }
	.svch-orb .svch-orb__phrase { font-size: 11px; line-height: 1.4; }
	.svch-orb .svch-orb__nodeicon { width: 19px; height: 19px; }
	.svch-orb button.svch-orb__hub { width: 104px; }
	.svch-orb .svch-orb__hubinner { padding: 16px 11px; }
	.svch-orb .svch-orb__hublabel { font-size: 8px; letter-spacing: .08em; }
	.svch-orb__rings > span:nth-child(4) { width: 46%; height: 32%; }
	.svch-orb .svch-orb__captitle { font-size: 18px; }
}
@media (max-width: 374px) {
	.svch-orb__system { height: 560px; }
	.svch-orb button.svch-orb__node { width: 32%; padding: 11px 7px 12px; }
	.svch-orb .svch-orb__label { font-size: 12px; }
	.svch-orb .svch-orb__phrase { font-size: 11px; }
	.svch-orb .svch-orb__nodeicon { width: 18px; height: 18px; }
	.svch-orb button.svch-orb__hub { width: 94px; }
	.svch-orb .svch-orb__hubinner { padding: 15px 9px; }
	.svch-orb .svch-orb__hubrule { margin: 5px 0; }
	.svch-orb .svch-orb__hublabel { font-size: 7px; letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
	.svch-orb__flow { display: none; animation: none; }
	.svch-orb__caption::before { display: none; }
	.svch-orb__wire,
	.svch-orb button.svch-orb__node,
	.svch-orb button.svch-orb__hub { transition: none; }
}
