/* =================================================================
   HERO WIDGET — OPTIMIZED 2026
   - curățat, ordonat, fără duplicări
   - 100% compatibil cu tokens.css
   - include upgrade-ul semantic de spacing
   ================================================================= */


/* ────────────────────────────────────────────────────────────────
   ROOT
   ──────────────────────────────────────────────────────────────── */

.hero-widget {
	position: relative;
	padding-top: clamp(3rem, 3vw, 4rem);
	margin-bottom: clamp(3rem, 3vw, 4rem);
	font-family: var(--font-serif);
}



/* ────────────────────────────────────────────────────────────────
   HERO TEXT — EYEBROW → TITLE → DESC → CTA
   ──────────────────────────────────────────────────────────────── */

.hero-eyebrow {
	margin-bottom: var(--gap-eyebrow-to-title);
}

.hero-title {
	margin-bottom: var(--gap-title-to-desc);
}

.hero-content {
	margin-bottom: var(--gap-desc-to-cta);
}

.hero-cta-group {
	display: flex;
	gap: var(--gap-list-items);
}



/* ────────────────────────────────────────────────────────────────
   TYPOGRAPHY (semantic tokens)
   ──────────────────────────────────────────────────────────────── */

.hero-tagline {
	display: block;
	font-family: var(--type-eyebrow-family);
	font-size: var(--type-eyebrow-size);
	font-weight: var(--type-eyebrow-weight);
	line-height: var(--type-eyebrow-leading);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: var(--type-eyebrow-transform);
	color: var(--color-brand-primary);
	margin: 0 0 var(--gap-eyebrow-to-title);
}

.hero-widget .hero-title {
	font-family: var(--type-display-family);
	font-size: var(--type-display-size);
	font-weight: var(--type-display-weight);
	line-height: var(--type-display-leading);
	letter-spacing: var(--type-display-tracking);
	color: var(--color-brand-navy);
	max-width: 720px;
	margin: 0 0 var(--gap-title-to-desc);
}

.hero-widget .hero-content {
	max-width: 640px;
}

.hero-widget .hero-content p {
	font-family: var(--type-lead-family);
	font-size: var(--type-lead-size);
	font-weight: var(--type-lead-weight);
	line-height: var(--type-lead-leading);
	color: var(--color-text-muted);
}

.hero-widget .hero-content p+p {
	margin-top: var(--gap-paragraph);
}



/* ────────────────────────────────────────────────────────────────
   SACRED MEDALLION (host + chalice)
   ──────────────────────────────────────────────────────────────── */

.hero-widget .hero-sacred-medallion {
	position: absolute;
	left: 0;
	bottom: clamp(0.5rem, 1.5vw, 1rem);
	width: clamp(138px, 12.2vw, 176px);
	aspect-ratio: 1;
	border-radius: 50%;
	margin: 15px;
	z-index: 5;
	overflow: hidden;
	isolation: isolate;
	pointer-events: none;
	box-shadow: 0 10px 30px rgba(10, 36, 64, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.75);
	animation: heroSacredMedallionBreath 8.5s ease-in-out infinite;
}

.hero-widget .hero-sacred-medallion::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background:
		radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.80) 42%, rgba(244, 239, 226, 0.74) 100%),
		linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 241, 230, 0.82));
	border: 1px solid rgb(203 203 203 / 34%);
}

.hero-widget .hero-sacred-medallion::after {
	content: "";
	position: absolute;
	inset: 12%;
	border-radius: inherit;
	background: radial-gradient(circle at 50% 30%, rgba(242, 196, 0, 0.20), rgba(242, 196, 0, 0));
	opacity: 0.9;
	animation: heroSacredHaloPulse 7.5s ease-in-out infinite;
}

.hero-widget .hero-sacred-medallion__chalice,
.hero-widget .hero-sacred-medallion__host {
	position: absolute;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
	background: transparent;
}

.hero-widget .hero-sacred-medallion__chalice {
	left: 32%;
	bottom: 0;
	width: 50%;
	z-index: 2;
	transform-origin: 50% 88%;
	filter: drop-shadow(0 7px 13px rgba(10, 36, 64, 0.10));
	animation: heroSacredChaliceDrift 6.8s ease-in-out infinite;
}

.hero-widget .hero-sacred-medallion__host {
	left: 7%;
	top: 7%;
	width: 62%;
	z-index: 3;
	transform-origin: 62% 28%;
	filter: drop-shadow(0 7px 13px rgba(10, 36, 64, 0.08));
	animation: heroSacredHostFloat 5.2s ease-in-out infinite;
}



/* ────────────────────────────────────────────────────────────────
   IMAGE FRAME
   ──────────────────────────────────────────────────────────────── */

.hero-widget .hero-image-frame {
	position: relative;
	overflow: hidden;
	min-height: 560px;
}

.hero-widget .hero-widget__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	filter: saturate(0.95) contrast(1.02);
	margin-left: 20px;
}

.hero-widget .hero-donut-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}



/* ────────────────────────────────────────────────────────────────
   CTA RAIL (glass cards)
   ──────────────────────────────────────────────────────────────── */

.hero-widget+.hero-cta-rail,
.hero-widget~.hero-cta-rail {
	position: relative;
	z-index: 12;
	margin-top: var(--gap-desc-to-cta);
}

.hero-card-float--inline,
.hero-widget+.hero-cta-rail .hero-card-float,
.hero-widget~.hero-cta-rail .hero-card-float {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: min(100%, 320px);
	min-height: 88px;
	font-family: var(--font-ui);
	color: var(--color-brand-navy);
	border-radius: var(--radius-md);
	overflow: hidden;
	isolation: isolate;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
	border: 1px solid rgba(255, 255, 255, 0.68);
	box-shadow: 0 14px 34px rgba(10, 36, 64, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(1px) saturate(1.12);
	-webkit-backdrop-filter: blur(5px) saturate(1.12);
	transition: transform var(--duration-med) var(--ease-out), 
		box-shadow var(--duration-med) var(--ease-out), 
		border-color var(--duration-med) var(--ease-out), 
		background-color var(--duration-med) var(--ease-out), 
		backdrop-filter var(--duration-med) var(--ease-out);
}

.hero-card-float--inline::before,
.hero-widget+.hero-cta-rail .hero-card-float::before,
.hero-widget~.hero-cta-rail .hero-card-float::before {
	content: "";
	position: absolute;
	inset: auto -22% -42% -22%;
	height: 72%;
	border-radius: 50%;
	background: radial-gradient(ellipse, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
	opacity: 0.72;
	transform: translateY(8px);
	transition: opacity var(--duration-med) var(--ease-out),
		transform var(--duration-med) var(--ease-out);
}

.hero-card-float--inline::after,
.hero-widget+.hero-cta-rail .hero-card-float::after,
.hero-widget~.hero-cta-rail .hero-card-float::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.52));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0.68;
}

.hero-card-float--inline>*,
.hero-widget+.hero-cta-rail .hero-card-float>*,
.hero-widget~.hero-cta-rail .hero-card-float>* {
	position: relative;
	z-index: 1;
}

.hero-widget .icon-lg {
	width: 54px;
	height: 54px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--color-accent);
	color: var(--color-on-dark);
	border-radius: var(--radius-circle);
	box-shadow: 0 2px 4px rgba(10, 36, 64, 0.12);
	transition: transform var(--duration-med) var(--ease-out),
		background var(--duration-med) var(--ease-out),
		box-shadow var(--duration-med) var(--ease-out);
}

.hero-card-float__title,
.hero-card-float--inline h6 {
	font-family: var(--font-ui);
	font-size: 1.02rem;
	font-weight: var(--font-weight-bold);
	line-height: 1.25;
	color: var(--color-brand-navy);
	margin: 0;
}

.hero-card-float__sub,
.hero-card-float--inline .small {
	font-family: var(--font-reading);
	font-size: var(--text-sm);
	color: var(--color-brand-primary-dark);
}



/* ────────────────────────────────────────────────────────────────
   HOVER STATES
   ──────────────────────────────────────────────────────────────── */

.hero-card-float--inline:hover,
.hero-card-float--inline:focus-visible,
.hero-widget+.hero-cta-rail .hero-card-float:hover,
.hero-widget+.hero-cta-rail .hero-card-float:focus-visible,
.hero-widget~.hero-cta-rail .hero-card-float:hover,
.hero-widget~.hero-cta-rail .hero-card-float:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(255, 255, 255, 0.86);
	box-shadow: 0 18px 42px rgba(10, 36, 64, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(19px) saturate(1.16);
}

.hero-card-float--inline:hover::before,
.hero-card-float--inline:focus-visible::before {
	opacity: 1;
	transform: translateY(0);
}

.hero-card-float--inline:hover .icon-lg,
.hero-card-float--inline:focus-visible .icon-lg {
	/* background: var(--color-brand-navy); */
	transform: scale(1.06);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}



/* ────────────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────────────── */

@media (min-width: 992px) {

	.hero-widget+.hero-cta-rail,
	.hero-widget~.hero-cta-rail {
		margin-top: calc(var(--gap-desc-to-cta) * -0.25);
	}
}

@media (max-width: 991.98px) {
	.hero-widget .hero-image-frame {
		min-height: 380px;
	}

	.hero-card-float--inline {
		width: min(100%, 420px);
	}
}

@media (max-width: 767.98px) {
	.hero-widget .hero-image-frame {
		min-height: 300px;
	}

	.hero-widget .hero-title {
		margin-bottom: var(--space-4);
	}

	.hero-widget .hero-content p {
		font-size: var(--text-base);
		line-height: var(--type-body-leading);
	}

	.hero-widget .hero-widget__img {
		object-position: center 20%;
	}

	.hero-widget+.hero-cta-rail {
		margin-top: var(--space-5);
	}
}

@media (max-width: 575.98px) {
	.hero-widget .hero-image-frame {
		min-height: 240px;
	}
}



/* ────────────────────────────────────────────────────────────────
   REDUCED MOTION
   ──────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

	.hero-sacred-medallion,
	.hero-sacred-medallion::after,
	.hero-sacred-medallion__chalice,
	.hero-sacred-medallion__host,
	.hero-card-float--inline,
	.hero-card-float--inline::before,
	.hero-card-float--inline::after,
	.hero-card-float--inline .icon-lg {
		animation: none !important;
		transition: none !important;
	}
}



/* ────────────────────────────────────────────────────────────────
   ANIMATIONS
   ──────────────────────────────────────────────────────────────── */

@keyframes heroSacredMedallionBreath {

	0%,
	100% {
		transform: translate3d(0, 0, 0) scale(1);
	}

	50% {
		transform: translate3d(0, -3px, 0) scale(1.01);
	}
}

@keyframes heroSacredHaloPulse {

	0%,
	100% {
		opacity: 0.55;
		transform: scale(0.98);
	}

	50% {
		opacity: 0.9;
		transform: scale(1.04);
	}
}

@keyframes heroSacredHostFloat {

	0%,
	100% {
		transform: translate3d(0, 0, 0) rotate(-0.55deg);
	}

	50% {
		transform: translate3d(0, -5px, 0) rotate(0.65deg);
	}
}

@keyframes heroSacredChaliceDrift {

	0%,
	100% {
		transform: translate3d(0, 0, 0) rotate(0deg);
	}

	50% {
		transform: translate3d(0, 2px, 0) rotate(-0.35deg);
	}
}
