/* Onefold Sub-services and Service Visual. Loaded only on pages that use them. */

/* ---------- Sub-services ---------- */
.of-cat {
	display: flex;
	flex-direction: column;
	gap: 56px;
	min-width: 0;
}

.of-cat__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.of-cat__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid rgba(108, 92, 231, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.8);
	color: var(--of-color-text, #0B1020);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.of-cat__nav a:hover,
.of-cat__nav a:focus-visible {
	border-color: var(--of-color-violet, #6C5CE7);
	color: var(--of-color-link, #5B4BD8);
}

.of-cat__group {
	display: flex;
	flex-direction: column;
	gap: 24px;
	scroll-margin-top: 96px;
}

.of-cat__ghead {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	border: 1px solid var(--of-glass-border, rgba(255, 255, 255, 0.85));
	border-radius: var(--of-radius-lg, 24px);
	background: linear-gradient(135deg, rgba(108, 92, 231, 0.07), rgba(0, 194, 255, 0.06)), #fff;
	box-shadow: var(--of-shadow, 0 12px 32px rgba(11, 16, 32, 0.08));
}

.of-cat__gtitle,
.of-cat__chead {
	display: flex;
	gap: 14px;
	align-items: center;
	min-width: 0;
}

.of-cat__gname {
	margin: 0;
	color: var(--of-color-text, #0B1020);
	font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
	line-height: 1.25;
}

.of-cat__gdesc {
	max-width: 820px;
	margin: 0;
	color: var(--of-color-muted, #4A5068);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.of-cat__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px 24px;
}

.of-cat__fact p {
	margin: 0;
	color: var(--of-color-muted, #4A5068);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.of-cat__label {
	margin: 0 0 6px;
	color: var(--of-color-text, #0B1020);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.of-cat__fact .of-cat__label {
	color: var(--of-color-link, #5B4BD8);
}

.of-cat__grid {
	display: grid;
	grid-template-columns: repeat(var(--of-cat-cols, 3), minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.of-cat__card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 22px;
	border: 1px solid rgba(108, 92, 231, 0.13);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 6px 20px rgba(11, 16, 32, 0.05);
	scroll-margin-top: 96px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.of-cat__card:hover {
		box-shadow: var(--of-glow, 0 20px 60px rgba(108, 92, 231, 0.18));
		transform: translateY(-2px);
	}
}

.of-cat__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(108, 92, 231, 0.14), rgba(0, 194, 255, 0.14));
	color: #5A49D6;
}

.of-cat__icon .of-icon {
	width: 22px;
	height: 22px;
}

.of-cat__icon--img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.of-cat__title {
	margin: 0;
	color: var(--of-color-text, #0B1020);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.of-cat__desc {
	margin: 0;
	color: var(--of-color-muted, #4A5068);
	font-size: 0.9688rem;
	line-height: 1.6;
}

.of-cat__card > .of-cat__label {
	margin-top: 2px;
	margin-bottom: -4px;
}

.of-cat__feat,
.of-cat__dots {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.of-cat__feat li,
.of-cat__dots li {
	position: relative;
	padding-left: 22px;
	color: var(--of-color-text, #0B1020);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.of-cat__feat li::before {
	content: "";
	position: absolute;
	top: 0.42em;
	left: 2px;
	width: 10px;
	height: 6px;
	border-bottom: 2px solid #138A52;
	border-left: 2px solid #138A52;
	transform: rotate(-45deg);
}

.of-cat__dots li {
	color: var(--of-color-muted, #4A5068);
}

.of-cat__dots li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 6px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--of-gradient, linear-gradient(135deg, #6C5CE7, #00C2FF));
}

.of-cat__more {
	border-top: 1px solid var(--of-color-border, #E3E6F0);
	padding-top: 10px;
}

.of-cat__more summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 32px;
	color: var(--of-color-link, #5B4BD8);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.of-cat__more summary::-webkit-details-marker {
	display: none;
}

.of-cat__more summary::after {
	content: "+";
	font-size: 1.25rem;
	line-height: 1;
}

.of-cat__more[open] summary::after {
	content: "\2212";
}

.of-cat__more summary:focus-visible {
	outline: 3px solid var(--of-color-violet, #6C5CE7);
	outline-offset: 3px;
	border-radius: 6px;
}

.of-cat__morebody {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 8px;
}

.of-cat__morebody .of-cat__label {
	margin-top: 6px;
	margin-bottom: 0;
}

.of-cat__link {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 4px;
	color: var(--of-color-link, #5B4BD8);
	font-weight: 700;
	text-decoration: none;
}

.of-cat__ghead .of-cat__link {
	margin-top: 0;
}

.of-cat__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	align-items: center;
	margin-top: auto;
	padding-top: 4px;
}

.of-cat__links .of-cat__link {
	margin-top: 0;
	padding-top: 0;
}

.of-cat__ghead .of-cat__links {
	margin-top: 0;
}

/* "Request this service": a small pill, so it reads as the next step. */
.of-cat__link--quote {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 16px !important;
	border: 1px solid rgba(108, 92, 231, 0.35);
	border-radius: 999px;
	background: rgba(108, 92, 231, 0.06);
}

.of-cat__link--quote:hover {
	background: rgba(108, 92, 231, 0.12);
	text-decoration: none;
}

.of-cat__link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.of-cat__gbody > summary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	margin-bottom: 18px;
	padding: 10px 20px;
	border: 1px solid rgba(108, 92, 231, 0.3);
	border-radius: 999px;
	background: #fff;
	color: var(--of-color-link, #5B4BD8);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.of-cat__gbody > summary::-webkit-details-marker {
	display: none;
}

.of-cat__gbody > summary::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
}

.of-cat__gbody[open] > summary::after {
	transform: rotate(-135deg) translate(-2px, 0);
}

.of-cat__gbody > summary:hover {
	border-color: var(--of-color-violet, #6C5CE7);
	box-shadow: 0 8px 22px rgba(108, 92, 231, 0.14);
}

.of-cat__gbody > summary:focus-visible {
	outline: 3px solid var(--of-color-violet, #6C5CE7);
	outline-offset: 3px;
}

.of-cat__gbody .of-cat__hide,
.of-cat__gbody[open] .of-cat__show {
	display: none;
}

.of-cat__gbody[open] .of-cat__hide {
	display: inline;
}

.of-cat__group:has(.of-cat__gbody:not([open])) {
	gap: 16px;
}

@media (max-width: 1024px) {
	.of-cat__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.of-cat {
		gap: 40px;
	}

	.of-cat__nav ul {
		flex-wrap: nowrap;
		margin: 0 -16px;
		padding: 0 16px 6px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.of-cat__nav li {
		flex: none;
	}

	.of-cat__ghead {
		padding: 20px 18px;
		border-radius: 18px;
	}

	.of-cat__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.of-cat__card {
		padding: 18px;
		border-radius: 16px;
	}

	.of-cat__icon {
		width: 40px;
		height: 40px;
	}
}

/* ---------- Service Visual ---------- */
.of-art {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	max-width: 520px;
	min-height: 380px;
	margin-inline: auto;
	isolation: isolate;
}

.of-art--img {
	min-height: 0;
}

.of-art--img img {
	width: 100%;
	height: auto;
	border-radius: var(--of-radius-lg, 24px);
}

.of-art__orb {
	position: absolute;
	z-index: -1;
	top: 6%;
	left: 8%;
	width: 62%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(108, 92, 231, 0.35), rgba(108, 92, 231, 0) 70%);
}

.of-art__orb--b {
	top: auto;
	bottom: 4%;
	left: auto;
	right: 4%;
	width: 52%;
	background: radial-gradient(circle at 60% 60%, rgba(0, 194, 255, 0.32), rgba(0, 194, 255, 0) 70%);
}

.of-art__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: min(300px, 78%);
	padding: 26px;
	border: 1px solid var(--of-glass-border, rgba(255, 255, 255, 0.85));
	border-radius: 26px;
	background: var(--of-glass-bg, rgba(255, 255, 255, 0.72));
	box-shadow: var(--of-glow, 0 20px 60px rgba(108, 92, 231, 0.18));
	transform: rotate(-3deg);
}

.of-art__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: var(--of-gradient-strong, linear-gradient(135deg, #6C5CE7, #2F6FE4));
	color: #fff;
}

.of-art__icon .of-icon {
	width: 32px;
	height: 32px;
}

.of-art__label {
	color: var(--of-color-text, #0B1020);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.of-art__bars {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.of-art__bars i {
	display: block;
	height: 10px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(108, 92, 231, 0.22), rgba(0, 194, 255, 0.18));
}

.of-art__bars i:nth-child(2) {
	width: 78%;
}

.of-art__bars i:nth-child(3) {
	width: 56%;
}

.of-art__chips {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	pointer-events: none;
}

.of-art__chips li {
	position: absolute;
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 8px 12px;
	border: 1px solid rgba(108, 92, 231, 0.16);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(11, 16, 32, 0.08);
	color: var(--of-color-text, #0B1020);
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
}

.of-art__chips .of-icon {
	width: 14px;
	height: 14px;
	color: #138A52;
}

/* Chips sit above and below the card, never across its title. */
.of-art__chips li:nth-child(1) { top: 2%; left: 0; }
.of-art__chips li:nth-child(2) { top: 11%; right: 0; }
.of-art__chips li:nth-child(3) { bottom: 11%; left: 0; }
.of-art__chips li:nth-child(4) { bottom: 2%; right: 2%; }
.of-art__chips li:nth-child(5) { top: 64%; left: -4%; }
.of-art__chips li:nth-child(6) { top: 72%; right: -4%; }

@media (prefers-reduced-motion: no-preference) {
	.of-art__card {
		animation: of-art-float 7s ease-in-out infinite;
	}
}

@keyframes of-art-float {
	0%, 100% { transform: rotate(-3deg) translateY(0); }
	50% { transform: rotate(-3deg) translateY(-8px); }
}

@media (max-width: 767px) {
	.of-art {
		min-height: 0;
		max-width: 100%;
		padding: 8px 0 0;
	}

	.of-art__card {
		display: none;
	}

	.of-art__orb {
		display: none;
	}

	.of-art__chips {
		position: static;
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.of-art__chips li {
		position: static;
		box-shadow: none;
	}
}

/* How to order */
.of-cat__order {
	margin-top: clamp(32px, 5vw, 56px);
	padding: clamp(22px, 3.5vw, 40px);
	border: 1px solid var(--of-color-border, #E3E6F0);
	border-radius: var(--of-radius-lg, 24px);
	background: linear-gradient(135deg, rgba(108, 92, 231, 0.06), rgba(0, 194, 255, 0.06)), #fff;
}

.of-cat__otitle {
	margin: 0 0 20px;
	font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

.of-cat__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.of-cat__step {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
}

.of-cat__snum {
	display: inline-flex;
	flex: 0 0 36px;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--of-gradient-strong, linear-gradient(135deg, #6C5CE7 0%, #2F6FE4 100%));
	color: #fff;
	font-weight: 700;
}

.of-cat__stitle {
	margin: 4px 0 4px;
	font-weight: 700;
	color: var(--of-color-text, #0B1020);
}

.of-cat__stext {
	margin: 0;
	color: var(--of-color-muted, #4A5068);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.of-cat__obtns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0 0;
}

@media (max-width: 1024px) {
	.of-cat__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.of-cat__steps {
		grid-template-columns: 1fr;
	}
}