/* =========================================================
   Header Screen Slider — Frontend Styles
   ========================================================= */

.hss-widget {
	position: relative;
	--hss-stagger: 120ms;
	--hss-offset: 60px;
}

.hss-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.hss-full-height-yes .hss-slider,
.hss-full-height-yes .hss-slider .swiper,
.hss-full-height-yes .hss-slide {
	height: 100vh !important;
}

.hss-slider .swiper,
.hss-slide {
	width: 100%;
	position: relative;
}

/* ---------------------------- Media -------------------------------- */

.hss-slide__media,
.hss-slide__placeholder {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #1a1a1a;
}

.hss-slide__media img,
.hss-slide__media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.hss-embed-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.hss-embed-bg iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw; /* 16:9 */
	min-height: 100%;
	min-width: 177.78vh; /* 16:9 */
	transform: translate(-50%, -50%);
	border: 0;
}

/* Ken Burns */
@keyframes hss-kenburns {
	0%   { transform: scale(1); }
	100% { transform: scale(1.12); }
}
.hss-slide--kenburns .hss-slide__media img {
	animation-name: hss-kenburns;
	animation-duration: 8s;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;
}

/* ---------------------------- Video trigger (popup mode) ------------ */

.hss-video-trigger {
	position: absolute;
	inset: 0;
	cursor: pointer;
}

.hss-video-trigger img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hss-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s ease, background 0.25s ease;
	z-index: 2;
}

.hss-play-btn svg {
	width: 28px;
	height: 28px;
	fill: #111;
	margin-left: 3px;
}

.hss-video-trigger:hover .hss-play-btn {
	transform: translate(-50%, -50%) scale(1.08);
	background: #fff;
}

/* Popup modal */
.hss-video-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hss-video-popup[hidden] {
	display: none;
}

.hss-video-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.hss-video-popup__body {
	position: relative;
	width: min(90vw, 1100px);
	aspect-ratio: 16 / 9;
	z-index: 1;
}

.hss-video-popup__frame,
.hss-video-popup__frame iframe,
.hss-video-popup__frame video {
	width: 100%;
	height: 100%;
	border: 0;
}

.hss-video-popup__close {
	position: absolute;
	top: -44px;
	right: 0;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

/* ---------------------------- Overlay -------------------------------- */

.hss-slide__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

/* ---------------------------- Content layout ------------------------- */

.hss-slide__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	padding: var(--hss-offset);
	pointer-events: none;
}

.hss-slide__content-inner {
	pointer-events: auto;
}

.hss-slide__content.hss-pos-v-top      { align-items: flex-start; }
.hss-slide__content.hss-pos-v-center   { align-items: center; }
.hss-slide__content.hss-pos-v-bottom   { align-items: flex-end; }

.hss-slide__content.hss-pos-h-left     { justify-content: flex-start; }
.hss-slide__content.hss-pos-h-center   { justify-content: center; }
.hss-slide__content.hss-pos-h-right    { justify-content: flex-end; }

.hss-slide__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
	display: block;
}

.hss-slide__heading {
	margin: 0 0 20px;
	font-size: 52px;
	line-height: 1.15;
	font-weight: 700;
}

.hss-slide__description {
	margin: 0 0 30px;
	font-size: 18px;
	line-height: 1.6;
}

/* ---------------------------- Button --------------------------------- */

.hss-slide__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	padding: 16px 34px;
	background: #ffffff;
	color: #111111;
	border-radius: 4px;
	border: 2px solid transparent;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.hss-btn-skin--outline {
	background: transparent !important;
	border-color: currentColor;
}

.hss-btn-skin--text {
	background: transparent !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	border: 0 !important;
}

.hss-slide__button-icon {
	display: inline-flex;
	align-items: center;
}

.hss-slide__button-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Full-slide link (kept below button, above overlay) */
.hss-slide__full-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* ---------------------------- Entrance animation ---------------------- */

.hss-slide__content * {
	animation-duration: 700ms;
	animation-timing-function: ease-out;
	animation-fill-mode: both;
}

.hss-slide:not(.swiper-slide-active) .hss-slide__content * {
	animation: none !important;
	opacity: 0;
}

@keyframes hss-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hss-fade-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hss-fade-down { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hss-zoom-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes hss-slide-left { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes hss-slide-right { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }

.swiper-slide-active.hss-slide--anim-fade .hss-slide__content *       { animation-name: hss-fade; }
.swiper-slide-active.hss-slide--anim-fade-up .hss-slide__content *    { animation-name: hss-fade-up; }
.swiper-slide-active.hss-slide--anim-fade-down .hss-slide__content *  { animation-name: hss-fade-down; }
.swiper-slide-active.hss-slide--anim-zoom-in .hss-slide__content *    { animation-name: hss-zoom-in; }
.swiper-slide-active.hss-slide--anim-slide-left .hss-slide__content * { animation-name: hss-slide-left; }
.swiper-slide-active.hss-slide--anim-slide-right .hss-slide__content *{ animation-name: hss-slide-right; }
.swiper-slide-active.hss-slide--anim-none .hss-slide__content *       { animation: none !important; opacity: 1; }

/* ---------------------------- Arrows ---------------------------------- */

.hss-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	transition: all 0.25s ease;
}

.hss-arrow--prev { left: 30px; }
.hss-arrow--next { right: 30px; }

.hss-arrow svg,
.hss-arrow i {
	width: 20px;
	height: 20px;
	font-size: 20px;
	fill: currentColor;
}

.hss-arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.hss-hide-arrows-mobile .hss-arrow {
	display: flex;
}

@media (max-width: 767px) {
	.hss-hide-arrows-mobile .hss-arrow {
		display: none;
	}
}

/* ---------------------------- Pagination ------------------------------ */

.swiper-pagination-bullet {
	background: rgba(255, 255, 255, 0.5);
	opacity: 1;
	width: 10px;
	height: 10px;
	transition: all 0.25s ease;
}

.swiper-pagination-bullet-active {
	background: #fff;
}

.hss-dot-shape--square .swiper-pagination-bullet {
	border-radius: 2px;
}

.hss-dot-shape--pill .swiper-pagination-bullet-active {
	border-radius: 10px;
	width: 30px;
}

.swiper-pagination-progressbar {
	background: rgba(255, 255, 255, 0.25);
}

.swiper-pagination-fraction {
	color: #fff;
	font-size: 14px;
}

/* ---------------------------- Scroll indicator ------------------------ */

.hss-scroll-indicator {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	z-index: 6;
	width: 36px;
	height: 36px;
	animation: hss-bounce 1.8s infinite;
}

.hss-scroll-indicator svg,
.hss-scroll-indicator i {
	width: 100%;
	height: 100%;
	font-size: 28px;
}

@keyframes hss-bounce {
	0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
	40% { transform: translate(-50%, -10px); }
	60% { transform: translate(-50%, -5px); }
}

/* ---------------------------- Reduced motion --------------------------- */

@media (prefers-reduced-motion: reduce) {
	.hss-slide__content *,
	.hss-slide--kenburns .hss-slide__media img,
	.hss-scroll-indicator {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ---------------------------- Responsive text -------------------------- */

@media (max-width: 1024px) {
	.hss-slide__heading { font-size: 40px; }
}

@media (max-width: 767px) {
	.hss-slide__heading { font-size: 30px; }
	.hss-slide__description { font-size: 15px; }
	.hss-slide__content { padding: 30px; }
	.hss-arrow { width: 40px; height: 40px; }
}
