/* ============================================================
   Klyna Custom Hero Banner
   ============================================================ */

.klyna-hero-banner-custom {
	position: relative;
	width: 100%;
	height: var(--klyna-hero-height, 500px);
	padding-top: var(--klyna-hero-padding-top, 80px);
	padding-bottom: var(--klyna-hero-padding-bottom, 80px);
	background-color: var(--klyna-hero-bg-color, #f8f8f8);
	overflow: hidden;
	display: flex;
	align-items: center;
	box-sizing: border-box;
}

.klyna-hero-banner-custom * {
	box-sizing: border-box;
}

/* Background image.
   ---------------------------------------------------------- */
.klyna-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	z-index: 0;
}

/* Overlay.
   ---------------------------------------------------------- */
.klyna-hero-overlay {
	position: absolute;
	inset: 0;
	background-color: var(--klyna-hero-overlay-color, transparent);
	opacity: var(--klyna-hero-overlay-opacity, 0.3);
	pointer-events: none;
	z-index: 1;
}

/* Container.
   ---------------------------------------------------------- */
.klyna-hero-banner-custom .klyna-hero-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--ast-normal-container-width, 1288px);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 40px;
}

/* Content.
   ---------------------------------------------------------- */
.klyna-hero-content {
	flex: 1 1 0;
	max-width: var(--klyna-hero-content-width, 540px);
}

.klyna-hero-label {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ast-global-color-1, #e02b2b);
	margin-bottom: 12px;
}

.klyna-hero-title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1.1;
	font-weight: 700;
	color: var(--ast-global-color-2, #1a2b4c);
	margin: 0 0 16px;
}

.klyna-hero-description {
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--ast-global-color-3, #4a4a4a);
	margin: 0 0 28px;
}

.klyna-hero-description p {
	margin: 0 0 0.75em;
}

.klyna-hero-description p:last-child {
	margin-bottom: 0;
}

/* Buttons.
   ---------------------------------------------------------- */
.klyna-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.klyna-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 6px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.klyna-hero-btn:hover {
	transform: translateY(-2px);
}

.klyna-hero-primary {
	background-color: var(--klyna-hero-btn-primary-bg, var(--ast-global-color-1, #e02b2b));
	color: var(--klyna-hero-btn-primary-text, var(--ast-global-color-5, #ffffff));
}

.klyna-hero-primary:hover {
	background-color: var(--klyna-hero-btn-primary-bg-hover, var(--klyna-link-h-color, #c41f1f));
	color: var(--klyna-hero-btn-primary-text-hover, var(--ast-global-color-5, #ffffff));
}

.klyna-hero-secondary {
	background-color: var(--klyna-hero-btn-secondary-bg, transparent);
	color: var(--klyna-hero-btn-secondary-text, var(--ast-global-color-2, #1a2b4c));
	box-shadow: inset 0 0 0 2px var(--klyna-hero-btn-secondary-border, var(--ast-global-color-2, #1a2b4c));
}

.klyna-hero-secondary:hover {
	background-color: var(--klyna-hero-btn-secondary-bg-hover, var(--ast-global-color-2, #1a2b4c));
	color: var(--klyna-hero-btn-secondary-text-hover, var(--ast-global-color-5, #ffffff));
}

/* Image.
   ---------------------------------------------------------- */
.klyna-hero-figure {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 50%;
}

.klyna-hero-figure img {
	width: 100%;
	height: auto;
	max-height: min(var(--klyna-hero-image-max-height, 420px), calc(var(--klyna-hero-height) - var(--klyna-hero-padding-top) - var(--klyna-hero-padding-bottom)));
	object-fit: contain;
	display: block;
}

/* Image position: right (default).
   ---------------------------------------------------------- */
.klyna-hero-image-right .klyna-hero-container {
	flex-direction: row;
}

/* Image position: left.
   ---------------------------------------------------------- */
.klyna-hero-image-left .klyna-hero-container {
	flex-direction: row-reverse;
}

/* ============================================================
   Animations.
   ============================================================ */

/* Fade in from left keyframes.
   ---------------------------------------------------------- */
@keyframes klynaHeroFadeLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Image zoom keyframe.
   ---------------------------------------------------------- */
@keyframes klynaHeroImageZoom {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.06);
	}
}

/* Image float keyframe.
   ---------------------------------------------------------- */
@keyframes klynaHeroImageFloat {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

/* Apply animations when the hero banner has the animated class.
   ---------------------------------------------------------- */
.klyna-hero-animated .klyna-hero-label,
.klyna-hero-animated .klyna-hero-title,
.klyna-hero-animated .klyna-hero-description {
	opacity: 0;
	animation: klynaHeroFadeLeft 0.8s ease-out forwards;
}

.klyna-hero-animated .klyna-hero-label {
	animation-delay: 0.1s;
}

.klyna-hero-animated .klyna-hero-title {
	animation-delay: 0.25s;
}

.klyna-hero-animated .klyna-hero-description {
	animation-delay: 0.4s;
}

.klyna-hero-animated .klyna-hero-buttons {
	opacity: 0;
	animation: klynaHeroFadeLeft 0.7s ease-out 0.7s forwards;
}

.klyna-hero-animated .klyna-hero-figure {
	animation: klynaHeroImageFloat 5s ease-in-out infinite;
}

.klyna-hero-animated .klyna-hero-figure img {
	animation: klynaHeroImageZoom 8s ease-out forwards;
}

/* ============================================================
   Mobile.
   ============================================================ */

@media (max-width: 768px) {
	.klyna-hero-banner-custom {
		padding-top: var(--klyna-hero-padding-top-mobile, 60px);
		padding-bottom: var(--klyna-hero-padding-bottom-mobile, 60px);
		min-height: var(--klyna-hero-height-mobile, 400px);
		height: auto;
	}

	.klyna-hero-banner-custom .klyna-hero-container,
	.klyna-hero-image-right .klyna-hero-container,
	.klyna-hero-image-left .klyna-hero-container {
		flex-direction: column;
		text-align: center;
		gap: 28px;
	}

	.klyna-hero-content,
	.klyna-hero-figure {
		max-width: 100%;
	}

	.klyna-hero-figure img {
		max-height: 260px;
	}

	.klyna-hero-banner-wrapper[data-animations-mobile="0"] .klyna-hero-animated .klyna-hero-label,
	.klyna-hero-banner-wrapper[data-animations-mobile="0"] .klyna-hero-animated .klyna-hero-title,
	.klyna-hero-banner-wrapper[data-animations-mobile="0"] .klyna-hero-animated .klyna-hero-description,
	.klyna-hero-banner-wrapper[data-animations-mobile="0"] .klyna-hero-animated .klyna-hero-buttons,
	.klyna-hero-banner-wrapper[data-animations-mobile="0"] .klyna-hero-animated .klyna-hero-figure,
	.klyna-hero-banner-wrapper[data-animations-mobile="0"] .klyna-hero-animated .klyna-hero-figure img {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.klyna-hero-buttons {
		justify-content: center;
	}
}

/* ============================================================
   Reduced motion preference.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
	.klyna-hero-animated .klyna-hero-label,
	.klyna-hero-animated .klyna-hero-title,
	.klyna-hero-animated .klyna-hero-description,
	.klyna-hero-animated .klyna-hero-buttons,
	.klyna-hero-animated .klyna-hero-figure,
	.klyna-hero-animated .klyna-hero-figure img {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* ============================================================
   Slider.
   ============================================================ */

.klyna-hero-banner-wrapper {
	position: relative;
	width: 100%;
}

.klyna-hero-banner-custom {
	display: none;
}

.klyna-hero-banner-custom.is-active {
	display: flex;
}

.klyna-hero-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.klyna-hero-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.8);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s;
}

.klyna-hero-dot.is-active {
	background: rgba(255, 255, 255, 0.9);
}

.klyna-hero-dot:focus {
	outline: 2px solid #0056b3;
	outline-offset: 2px;
}

@media (max-width: 768px) {
	.klyna-hero-dots {
		bottom: 14px;
	}

	.klyna-hero-dot {
		width: 10px;
		height: 10px;
	}
}
