:root {
	--icon-hover-color: #323b52;
	--orange: #ff8a4a;
	--yellow: #ffe53b;
	--navy: #323b52;
	--green: #34da9e;
	--pink: #ff5a95;
	--blue: #61c8d1;
	--card-radius: 24px;
	--card-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
	--card-height: 260px;
}
body,
html {
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
}
#svg-wrapper {
	width: 90vw;
	max-width: 1024px;
	margin: 0 auto -10px;
	display: block;
}
#svg-wrapper #background {
	display:none!important;
}
svg > g > rect {
	display: none;
}
svg g {
	cursor: pointer;
}
svg g > circle {
	filter: drop-shadow(7px 7px 12px rgba(0, 0, 0, 0.25));
}
svg g:hover > circle {
	filter: drop-shadow(5px 5px 2px rgba(0, 0, 0, 0.33));
}
svg > g > path:first-child {
	filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.26));
}
svg g:hover > path:first-child {
	filter: drop-shadow(0px 0px 16px rgba(0, 0, 0, 0.16));
}
svg g:hover > circle ~ path:last-child,
#blue:hover g:last-child path {
	transform: translate3d(0, 0, 0);
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		filter 0.5s ease, fill 0.5s ease;
	fill: var(--icon-hover-color) !important;
	transition: fill 0.5s ease;
}
#orange:hover > circle {
	fill: var(--orange) !important;
}
#navy:hover g:last-child path {
	fill: #fff !important;
}
#yellow:hover > circle {
	fill: var(--yellow) !important;
}
#green:hover > circle {
	fill: var(--green) !important;
}

#pink:hover > circle {
	fill: var(--pink) !important;
}

#blue:hover > circle {
	fill: var(--blue) !important;
}
#navy:hover > circle {
	fill: var(--icon-hover-color) !important;
	transition: fill 0.5s ease;
}

svg g:hover > circle {
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		filter 0.5s ease;
}
#salesforce path,
#snowflake path {
	filter: none;
}
#salesforce,
#snowflake {
	transition-duration: 0.5s;
	transform-origin: center;
	transform-box: fill-box;
}
#salesforce:hover,
#snowflake:hover {
	transform: scale(1.1);
}

#white_circle_in_the_middle {
	filter: drop-shadow(0px -10px 25px rgba(0, 0, 0, 0.33));
	transition: filter 0.5s ease;
}

#orange > path:first-child,
#orange circle,
#orange > path:last-child,
#navy > path:first-child,
#navy > circle,
#navy > circle ~ path,
#navy > g:last-child path,
#yellow > path:first-child,
#yellow circle,
#yellow > path:last-child,
#green > path:first-child,
#green circle,
#green > path:last-child,
#pink > path:first-child,
#pink circle,
#pink > path:last-child,
#blue > path:first-child,
#blue > circle,
#blue > g:last-child path {
	position: relative;
	transform: translate3d(0, 0, 0);
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		filter 0.5s ease;
}
#yellow > path:last-child {
	transform:translate3d(-2px, 1px, 0);
}
#orange:hover > path:first-child,
#orange:hover circle,
#orange:hover > path:last-child {
	transform: translate3d(-1vw, -0.45vw, 0);
}

#navy:hover > path:first-child,
#navy:hover > circle,
#navy:hover > g:last-child path {
	transform: translate3d(-0.75vw, -0.75vw, 0);
}

#yellow:hover > path:first-child,
#yellow:hover circle,
#yellow:hover > path:last-child {
	transform: translate3d(-0.25vw, -1vw, 0);
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		filter 0.5s ease, fill 0.5s ease;
}

#green:hover > path:first-child,
#green:hover circle,
#green:hover > path:last-child {
	transform: translate3d(0.25vw, -1vw, 0);
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		filter 0.5s ease, fill 0.5s ease;
}

#pink:hover > path:first-child,
#pink:hover circle,
#pink:hover > path:last-child {
	transform: translate3d(0.75vw, -0.9vw, 0);
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		filter 0.5s ease, fill 0.5s ease;
}

#blue:hover > path:first-child,
#blue:hover > circle,
#blue:hover > g:last-child path {
	transform: translate3d(1vw, -0.45vw, 0);
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		filter 0.5s ease, fill 0.5s ease;
}

/* Tooltip styles */
#tooltip {
	position: fixed;
	top: 0;
	left: 0;
	transform: translate(-50%, -100%);
	width:100%;
	max-width: 360px;
	background-color: var(--navy);
	color: #ffffff;
	padding: 16px 20px;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 150ms ease;
}
/* #tooltip:after {
	content: " ";
	width: 20px;
	height: 20px;
	position: absolute;
	bottom: 6px;
	right: 20%;
	transform: translateY(100%) rotate(-90deg);
	display: inline-block;
	border-bottom: 15px solid transparent;
	border-right: 15px solid var(--navy);
	border-top: 15px solid transparent;
	transform-origin: center;
} */

#tooltip.is-visible {
	opacity: 1;
	pointer-events: auto;
}

#tooltip .tooltip-title {
	font-size: 16px;
	margin: 0 0 8px;
	line-height: 1.5;
}

#tooltip .tooltip-subtext {
	font-size: 14px;
	margin: 0 0 10px;
	font-family:"Montserrat", sans-serif;
}

#tooltip a {
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	color: #fff;
}
#tooltip a:hover {
	color: #ff895a;
}

/* Mobile cards container */
.card-grid {
	display: none;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	max-width: 900px;
	margin: 3rem auto;
}

/* 3D flip container */
.service-card {
	perspective: 1000px;
}

.service-card__inner {
	position: relative;
	width: 100%;
	/*         height: var(--card-height); */
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.6s ease;
	border-radius: var(--card-radius);
	box-shadow: var(--card-shadow);
}

.service-card:hover .service-card__inner {
	transform: rotateY(180deg);
}

/* Faces */
.service-card__face {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	backface-visibility: hidden;
	overflow: hidden;
}

/* FRONT (white face with colored stripe) */
.service-card__face--front {
	background: #ffffff;
	display: flex;
	flex-direction: column;
}
.service-card__icon {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	margin: 0 auto;
}
.service-card__icon .card-icon {
	height: 100%;
	width: 100%;
}

.service-card__stripe {
	height: 54px;
}

.service-card--orange .service-card__stripe {
	background: var(--orange);
}
.service-card--navy .service-card__stripe {
	background: var(--navy);
}
.service-card--yellow .service-card__stripe {
	background: var(--yellow);
}
.service-card--green .service-card__stripe {
	background: var(--green);
}
.service-card--pink .service-card__stripe {
	background: var(--pink);
}
.service-card--blue .service-card__stripe {
	background: var(--blue);
}

.service-card__front-content {
	flex: 1;
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

.service-card__icon {
	margin-bottom: 16px;
	font-size: 40px; /* swap for SVG as needed */
}

.service-card__title {
	margin: 0;
	color: var(--navy);
	font-size: 1.1rem;
	font-weight: 700;
}

/* BACK (full color) */
.service-card__face--back,
.service-card__face--back--duplicate {
	transform: rotateY(180deg);
	display: flex;
	flex-direction: column;
	/*         justify-content: center; */
	justify-content: flex-start;
	text-align:left;
	padding: 32px;
	color: var(--navy);
}
.service-card__face--back--duplicate {
	opacity: 0;
	visibility: hidden;
	position: relative;
}
.service-card h3 {
	max-width: 200px;
    margin-left: auto;
    margin-right: auto;
	line-clamp:2;
    -webkit-line-clamp: 2;
    text-wrap: balance;
    text-align: center;
}
.service-card__face--back h3,
.service-card__face--back--duplicate h3 {
	text-align:left;
	margin-left:0;
}
.service-card__face--back h3,
.service-card__face--back p,
.service-card__face--back a,
.service-card__face--back a:hover {
	color: var(--navy);
}
.service-card__face--back a:hover {
	text-decoration: underline;
}

.service-card--navy .service-card__face--back h3,
.service-card--navy .service-card__face--back p,
.service-card--navy .service-card__face--back a,
.service-card--navy .service-card__face--back a:hover {
	color: #fff;
}

.service-card--orange .service-card__face--back {
	background: var(--orange);
}
.service-card--navy .service-card__face--back {
	background: var(--navy);
}
.service-card--yellow .service-card__face--back {
	background: var(--yellow);
}
.service-card--green .service-card__face--back {
	background: var(--green);
}
.service-card--pink .service-card__face--back {
	background: var(--pink);
}
.service-card--blue .service-card__face--back {
	background: var(--blue);
}

.service-card__back-title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.service-card__back-body {
	margin: 0 0 1.5rem;
	line-height: 1.5;
}

.service-card__link {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
	color: var(--navy);
}

/* Optional: nicer hover on link */
.service-card__link:hover {
	text-decoration-thickness: 3px;
}
@media screen and (min-width:768px) {
	#tooltip {
		min-height:160px;
	}
}
@media screen and (max-width: 767px) {
	#svg-wrapper {
		display: none;
	}
	.card-grid {
		display: grid;
		max-width: 600px;
		margin: 20px auto;
		padding: 0 10px;
	}
}
@media screen and (max-width: 540px) {
	.service-card__front-content,
	.service-card__face--back,
	.service-card__face--back--duplicate {
		padding: 20px;
	}
}
@media screen and (max-width: 480px) {
	.card-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}
