/* Intone CTA banner — reusable across pages via [intone_cta].
   Hover animation is ported 1:1 from the already-live "Scale with Confidence"
   CTA on /by-industry/financial-services/ (Elementor classes .mcard/.ccard/
   .general-bgstyle/.glass-overlay/.diagonal-design — reverse-engineered from
   the rendered page + wp-content/cache/autoptimize CSS, not guessed):
   - outer wrapper reveals a 16px teal→lime gradient frame on the top+left
     edge (border reserved transparent from the start — only recolors on
     hover, so nothing reflows/shifts the sections around it)
   - the card itself lifts by translate(-10px,-10px) and reveals its OWN
     4px gradient border on the bottom+right edge (same reservation trick)
   - a frosted "glass" sheen (blur + soft shine band) appears over the card
   - the diagonal facet pattern shrinks + shifts via transform (scale +
     translate) rather than width, so it never stretches/distorts
   Two content variants (demo / contact) share this exact animation. */

.ictab-outer {
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px;
	box-sizing: border-box;
	/* Border is reserved (transparent) from the start — hover only ever
	   recolors it, never grows it, so the layout height never shifts and
	   nothing below the component jumps when it's hovered. */
	border-top: 16px solid transparent;
	border-left: 16px solid transparent;
	transition: border-color 0.4s ease;
}

.ictab-outer:hover,
.ictab-outer:focus-within {
	border-image: linear-gradient(
		90deg,
		#6ac2b7 0%,
		#8ad6c0 50%,
		#8adbbb 75%,
		#86dcaf 87.5%,
		#84dda5 93.75%,
		#95e091 96.88%,
		#9fdd5f 100%
	) 1;
}

.ictab-card {
	--ictab-primary: #1e2e4c;
	--ictab-accent: #233963;

	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 32px;
	min-height: 336px;
	box-sizing: border-box;
	/* !important: .ictab-card is itself a <section> tag, and host pages
	   commonly ship a broad ambient reset like `.some-scope section {
	   padding: 96px 4vw }` (true on the eagleeye365 page this ships on)
	   which otherwise beats this single-class rule on specificity ties. */
	padding: 40px clamp(24px, 6vw, 88px) !important;
	overflow: hidden;
	background: linear-gradient(45deg, #e3ffcc 0%, #d0fff1 100%);
	/* Same reservation trick as .ictab-outer: border-width never changes,
	   only its color/image — keeps the card's own box pixel-stable. */
	border-right: 4px solid transparent;
	border-bottom: 4px solid transparent;
	transition: transform 0.4s ease, border-color 0.4s ease;
}

.ictab-outer:hover .ictab-card,
.ictab-outer:focus-within .ictab-card {
	transform: translate(-10px, -10px);
	border-image: linear-gradient(
		90deg,
		#6ac2b7 0%,
		#8ad6c0 50%,
		#8adbbb 75%,
		#86dcaf 87.5%,
		#84dda5 93.75%,
		#95e091 96.88%,
		#9fdd5f 100%
	) 1;
}

/* Frosted glass sheen — appears instantly on hover (no fade), matching the source */
.ictab-glass {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.ictab-outer:hover .ictab-glass,
.ictab-outer:focus-within .ictab-glass {
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.ictab-pattern {
	position: absolute;
	inset: 0;
	z-index: 0;
	/* background-size uses the box's HEIGHT only (auto width) so the
	   facet's native aspect ratio is preserved — stretching it to a fixed
	   width/height box (100% 100%) distorted/flattened the diagonal. */
	background: url("facet-pattern.svg") no-repeat right center;
	background-size: auto 100%;
	opacity: 0.1;
	transform-origin: right center;
	transition: transform 0.3s ease;
}

.ictab-outer:hover .ictab-pattern,
.ictab-outer:focus-within .ictab-pattern {
	/* translate + uniform scale (never width/height) so the shape shrinks
	   and shifts without any stretching. 0.875 ≈ the same 70%-of-card
	   end size as the source, scaled from an 80%-wide box (70/80). */
	transform: translate(25px, -20px) scale(0.875);
}

.ictab-copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
}

.ictab-text-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ictab-heading {
	margin: 0;
	color: var(--ictab-primary) !important;
	text-transform: capitalize;
	font-family: "Public Sans", sans-serif;
}

.ictab-card--demo .ictab-heading {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.15;
}

.ictab-card--contact .ictab-heading {
	font-size: 48px;
	font-weight: 500;
	line-height: 1.2;
}

.ictab-text {
	margin: 0;
	max-width: 488px;
	color: var(--ictab-primary) !important;
	font-family: "Public Sans", sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;
}

.ictab-btn {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 14px 18px;
	border: 2px solid var(--ictab-accent);
	background: #fff;
	color: var(--ictab-accent);
	font-family: "Public Sans", sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 28px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
}

.ictab-btn:hover,
.ictab-btn:focus-visible {
	background: var(--ictab-accent);
	color: #fff;
}

.ictab-badges {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
}

.ictab-badges img {
	width: 80px;
	height: 80px;
	object-fit: contain;
}

/* Contact variant: heading + button share one row instead of stacking */
.ictab-card--contact .ictab-copy {
	flex: 1 1 auto;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 40px;
	width: 100%;
}

.ictab-card--contact .ictab-text-block {
	max-width: 700px;
}

@media (max-width: 900px) {
	/* Smaller reserved borders at this breakpoint — set on the base rule
	   (not :hover) since width is never supposed to change on hover. */
	.ictab-outer {
		border-top-width: 8px;
		border-left-width: 8px;
	}

	.ictab-card {
		border-right-width: 2px;
		border-bottom-width: 2px;
	}

	.ictab-outer:hover .ictab-card,
	.ictab-outer:focus-within .ictab-card {
		transform: translate(-6px, -6px);
	}

	.ictab-card {
		padding: 32px 24px;
		gap: 24px;
	}

	.ictab-card--demo .ictab-heading {
		font-size: 32px;
	}

	.ictab-card--contact .ictab-heading {
		font-size: 32px;
	}

	.ictab-copy,
	.ictab-card--contact .ictab-copy {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}

	.ictab-badges {
		gap: 16px;
	}

	.ictab-badges img {
		width: 60px;
		height: 60px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ictab-outer,
	.ictab-card,
	.ictab-pattern,
	.ictab-btn {
		transition: none;
	}
}
