/* NOHAS 3D layer: depth, tilt, parallax. Loaded after style.css. */

/* --- Static depth (always on) --- */
.hero-title {
	text-shadow: 0 1px 0 #cfdcee, 0 2px 0 #c3d2e6, 0 3px 0 #b7c8de, 0 4px 0 #abbdd6, 0 10px 18px rgba(10, 61, 124, .18);
}
.hero-media { will-change: transform; }

.btn { transform: translateY(0); transition: transform .12s ease, box-shadow .12s ease, background .2s; }
.btn-primary { box-shadow: 0 6px 0 var(--blue-dark), 0 14px 24px rgba(21, 101, 216, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--blue-dark), 0 18px 28px rgba(21, 101, 216, .4); }
.btn-primary:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--blue-dark), 0 4px 8px rgba(21, 101, 216, .3); }
.btn-light { box-shadow: 0 5px 0 #b9cde6, 0 12px 20px rgba(0, 0, 0, .18); }
.btn-light:hover { transform: translateY(-2px); }
.btn-light:active { transform: translateY(4px); box-shadow: 0 1px 0 #b9cde6; }

.trust-ico { display: inline-flex; perspective: 400px; }
.trust-ico svg { transition: transform .8s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 6px 6px rgba(10, 61, 124, .22)); }
.trust-item:hover .trust-ico svg { transform: rotateY(360deg); }

.topic-ico { box-shadow: 0 8px 14px rgba(10, 61, 124, .18), inset 0 -3px 0 rgba(10, 61, 124, .1); }

/* --- Interactive tilt (only when JS enabled it: fine pointer, no reduced motion) --- */
.has-3d .grid { perspective: 1200px; }
.has-3d .card,
.has-3d .topic,
.has-3d .standards-list {
	--rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
	transform: rotateX(var(--rx)) rotateY(var(--ry));
	transform-style: preserve-3d;
	transition: transform .18s ease-out, box-shadow .25s ease;
	will-change: transform;
}
.has-3d .card:hover,
.has-3d .topic:hover {
	transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px) scale(1.02);
	box-shadow: 0 2px 4px rgba(10, 61, 124, .08), 0 18px 30px rgba(10, 61, 124, .18), 0 34px 60px rgba(10, 61, 124, .16);
}

/* Light glare following the pointer */
.has-3d .card::after,
.has-3d .topic::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%);
	opacity: 0;
	transition: opacity .25s;
	pointer-events: none;
	z-index: 3;
}
.has-3d .topic { position: relative; }
.has-3d .card:hover::after,
.has-3d .topic:hover::after { opacity: 1; }

/* Floating layers on topic cards (no overflow:hidden there, so depth works) */
.has-3d .topic-ico { transform: translateZ(34px); }
.has-3d .topic h3 { transform: translateZ(20px); }
.has-3d .topic p { transform: translateZ(10px); }

@media (max-width: 960px) {
	.btn-primary { box-shadow: 0 4px 0 var(--blue-dark), 0 10px 18px rgba(21, 101, 216, .3); }
}

@media (prefers-reduced-motion: reduce) {
	.hero-media, .trust-ico svg, .btn { transition: none !important; transform: none !important; }
}
