/*
 * Giltech Premium Hero – Elementor widget styles.
 * Everything is scoped under .gwhr-hero so it cannot leak into the theme or into the other
 * widgets of this plugin. Default values reproduce the original HTML exactly. Elementor style
 * controls only change the CSS variables below (or plain properties of elements without hover
 * states), so the hover effects always keep working.
 */

.gwhr-hero,
.gwhr-hero *,
.gwhr-hero *::before,
.gwhr-hero *::after {
	box-sizing: border-box;
}

.gwhr-hero {
	--gwhr-ease: cubic-bezier(.2, .72, .2, 1);
	--gwhr-lift: 3px;
	--gwhr-speed: 1200ms;
	--gwhr-kb: 8s;

	/* Overlay (desktop: left → right). */
	--gwhr-ov-1: rgba(8, 8, 8, .88);
	--gwhr-ov-2: rgba(8, 8, 8, .72);
	--gwhr-ov-3: rgba(8, 8, 8, .36);
	--gwhr-ov-4: rgba(8, 8, 8, .18);
	/* Overlay (mobile: top → bottom). */
	--gwhr-mov-1: rgba(8, 8, 8, .56);
	--gwhr-mov-2: rgba(8, 8, 8, .75);
	--gwhr-mov-3: rgba(8, 8, 8, .86);

	--gwhr-glow: rgba(255, 0, 0, .24);
	--gwhr-line: #FF0000;
	--gwhr-dot: rgba(255, 255, 255, .45);
	--gwhr-dot-active: #FF0000;

	/* Primary button. */
	--gwhr-b1-bg: #FF0000;
	--gwhr-b1-color: #FFFFFF;
	--gwhr-b1-border: #FF0000;
	--gwhr-b1-h-bg: #D90000;
	--gwhr-b1-h-color: #FFFFFF;
	--gwhr-b1-h-border: #D90000;
	/* Secondary button. */
	--gwhr-b2-bg: rgba(255, 255, 255, .08);
	--gwhr-b2-color: #FFFFFF;
	--gwhr-b2-border: rgba(255, 255, 255, .28);
	--gwhr-b2-h-bg: #FFFFFF;
	--gwhr-b2-h-color: #151515;
	--gwhr-b2-h-border: #FFFFFF;

	position: relative;
	width: 100%;
	min-height: 620px;
	margin: 0;
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
	background: #141414;
	color: #fff;
	font-family: "DM Sans", Manrope, Arial, sans-serif;
	text-align: start;
	-webkit-font-smoothing: antialiased;
}

/* Edge-to-edge: CSS fallback, the script then sets exact pixel values. */
.gwhr-hero.gwhr-fullwidth {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

/* Full screen height. */
.gwhr-hero.gwhr-fullscreen {
	min-height: 100vh;
	min-height: 100svh;
}

/* ------------------------------------------------------------------ */
/* Background media                                                   */
/* ------------------------------------------------------------------ */

.gwhr-hero .gwhr-hero__media {
	position: absolute;
	inset: 0;
	z-index: -3;
	overflow: hidden;
	background: inherit;
	pointer-events: none;
}

.gwhr-hero .gwhr-hero__picture {
	position: absolute;
	inset: 0;
	display: block;
}

.gwhr-hero .gwhr-hero__image,
.gwhr-hero .gwhr-hero__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center center;
	transform: scale(1.01);
}

.gwhr-hero .gwhr-hero__video {
	transform: none;
}

/* Slideshow */
.gwhr-hero .gwhr-slides {
	position: absolute;
	inset: 0;
}

.gwhr-hero .gwhr-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--gwhr-speed) ease;
}

.gwhr-hero .gwhr-slide.is-active {
	opacity: 1;
}

/* Fade + slow zoom (Ken Burns). The delayed reset happens after the fade-out has finished. */
.gwhr-hero .gwhr-slides.gwhr-zoom .gwhr-slide .gwhr-hero__image {
	transform: scale(1.01);
	transition: transform 0s linear var(--gwhr-speed);
}

.gwhr-hero .gwhr-slides.gwhr-zoom .gwhr-slide.is-active .gwhr-hero__image {
	transform: scale(1.12);
	transition: transform var(--gwhr-kb) ease-out 0s;
}

/* YouTube / Vimeo background. The script sizes the iframe so it always covers the area. */
.gwhr-hero .gwhr-embed {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.gwhr-hero .gwhr-embed iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Overlay & glow                                                     */
/* ------------------------------------------------------------------ */

.gwhr-hero .gwhr-hero__shade {
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background:
		linear-gradient(90deg, var(--gwhr-ov-1) 0%, var(--gwhr-ov-2) 38%, var(--gwhr-ov-3) 72%, var(--gwhr-ov-4) 100%),
		linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .22));
}

.gwhr-hero .gwhr-hero__glow {
	position: absolute;
	width: 360px;
	height: 360px;
	right: -120px;
	top: -120px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--gwhr-glow), transparent 68%);
	z-index: -1;
	pointer-events: none;
}

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

.gwhr-hero .gwhr-hero__wrap {
	--gwhr-jc: flex-start;
	--gwhr-ml: 0;
	--gwhr-mr: auto;

	position: relative;
	z-index: 1;
	width: min(1280px, 100%);
	margin: 0 auto;
	padding: 78px clamp(18px, 4vw, 70px);
	text-align: left;
}

.gwhr-hero .gwhr-hero__content {
	max-width: 760px;
	margin: 0 var(--gwhr-mr) 0 var(--gwhr-ml);
}

.gwhr-hero.gwhr-animate .gwhr-hero__content {
	animation: gwhr-heroIn .85s var(--gwhr-ease) both;
}

.gwhr-hero .gwhr-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 16px;
	padding: 0;
	color: rgba(255, 255, 255, .72);
	font-size: 9px;
	line-height: 1.4;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .20em;
}

.gwhr-hero .gwhr-hero__eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 30px;
	height: 2px;
	border-radius: 99px;
	background: var(--gwhr-line);
}

.gwhr-hero .gwhr-hero__title {
	max-width: 790px;
	margin: 0 var(--gwhr-mr) 0 var(--gwhr-ml);
	padding: 0;
	color: #fff;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(48px, 6.6vw, 82px);
	line-height: .96;
	letter-spacing: -.05em;
	font-weight: 400;
	text-transform: none;
}

.gwhr-hero .gwhr-hero__text {
	max-width: 620px;
	margin: 20px var(--gwhr-mr) 0 var(--gwhr-ml);
	padding: 0;
	color: rgba(255, 255, 255, .76);
	font-size: 15px;
	line-height: 1.85;
	font-weight: 400;
}

.gwhr-hero .gwhr-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--gwhr-jc);
	gap: 9px;
	margin-top: 25px;
}

.gwhr-hero .gwhr-hero__button {
	height: 45px;
	padding: 0 17px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	font-size: 8px;
	line-height: 1;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .10em;
	cursor: pointer;
	box-shadow: none;
	transition:
		transform .25s var(--gwhr-ease),
		background .25s var(--gwhr-ease),
		border-color .25s var(--gwhr-ease),
		color .25s var(--gwhr-ease);
}

.gwhr-hero .gwhr-hero__button--primary,
.gwhr-hero .gwhr-hero__button--primary:visited {
	background: var(--gwhr-b1-bg);
	color: var(--gwhr-b1-color);
	border: 1px solid var(--gwhr-b1-border);
}

.gwhr-hero .gwhr-hero__button--primary:hover,
.gwhr-hero .gwhr-hero__button--primary:focus-visible {
	background: var(--gwhr-b1-h-bg);
	color: var(--gwhr-b1-h-color);
	border-color: var(--gwhr-b1-h-border);
	transform: translateY(calc(-1 * var(--gwhr-lift)));
}

.gwhr-hero .gwhr-hero__button--secondary,
.gwhr-hero .gwhr-hero__button--secondary:visited {
	background: var(--gwhr-b2-bg);
	color: var(--gwhr-b2-color);
	border: 1px solid var(--gwhr-b2-border);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.gwhr-hero .gwhr-hero__button--secondary:hover,
.gwhr-hero .gwhr-hero__button--secondary:focus-visible {
	background: var(--gwhr-b2-h-bg);
	color: var(--gwhr-b2-h-color);
	border-color: var(--gwhr-b2-h-border);
	transform: translateY(calc(-1 * var(--gwhr-lift)));
}

.gwhr-hero .gwhr-hero__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.gwhr-hero .gwhr-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--gwhr-jc);
	gap: 9px;
	margin-top: 20px;
	color: rgba(255, 255, 255, .50);
	font-size: 8px;
	line-height: 1.4;
}

.gwhr-hero .gwhr-hero__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .40);
}

.gwhr-hero .gwhr-hero__scroll {
	position: absolute;
	left: clamp(18px, 4vw, 70px);
	bottom: 18px;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, .42);
	font-size: 7px;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: .14em;
}

.gwhr-hero .gwhr-hero__scroll > span {
	display: block;
	width: 25px;
	height: 1px;
	background: rgba(255, 255, 255, .28);
}

/* ------------------------------------------------------------------ */
/* Slideshow dots                                                     */
/* ------------------------------------------------------------------ */

.gwhr-hero .gwhr-dots {
	position: absolute;
	right: clamp(18px, 4vw, 70px);
	bottom: 8px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0;
}

.gwhr-hero .gwhr-dots .gwhr-dot {
	position: relative;
	display: block;
	width: 22px;
	height: 22px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.gwhr-hero .gwhr-dots .gwhr-dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--gwhr-dot);
	transform: translate(-50%, -50%);
	transition: background .25s var(--gwhr-ease), width .25s var(--gwhr-ease);
}

.gwhr-hero .gwhr-dots .gwhr-dot.is-active::before {
	width: 20px;
	border-radius: 99px;
	background: var(--gwhr-dot-active);
}

.gwhr-hero .gwhr-dots .gwhr-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

@keyframes gwhr-heroIn {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ */
/* Mobile                                                             */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.gwhr-hero {
		min-height: 560px;
	}

	.gwhr-hero.gwhr-fullscreen {
		min-height: 100vh;
		min-height: 100svh;
	}

	.gwhr-hero .gwhr-hero__wrap {
		padding: 58px 15px 70px;
	}

	.gwhr-hero .gwhr-hero__title {
		font-size: 45px;
	}

	.gwhr-hero .gwhr-hero__text {
		margin-top: 15px;
		font-size: 12px;
		line-height: 1.75;
	}

	.gwhr-hero.gwhr-btns-stack .gwhr-hero__actions {
		display: grid;
		grid-template-columns: 1fr;
		margin-top: 20px;
	}

	.gwhr-hero.gwhr-btns-stack .gwhr-hero__button {
		width: 100%;
		height: 43px;
	}

	.gwhr-hero .gwhr-hero__meta {
		font-size: 7.5px;
	}

	.gwhr-hero .gwhr-hero__shade {
		background: linear-gradient(180deg, var(--gwhr-mov-1) 0%, var(--gwhr-mov-2) 45%, var(--gwhr-mov-3) 100%);
	}

	/* "Play video on mobile" switched off: the poster image is shown instead. */
	.gwhr-hero.gwhr-video-off-m .gwhr-hero__video,
	.gwhr-hero.gwhr-video-off-m .gwhr-embed {
		display: none;
	}

	.gwhr-hero.gwhr-hide-scroll-m .gwhr-hero__scroll {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gwhr-hero.gwhr-animate .gwhr-hero__content {
		animation: none;
	}

	.gwhr-hero .gwhr-hero__button {
		transition: none;
	}

	.gwhr-hero .gwhr-slide {
		transition: none;
	}

	.gwhr-hero .gwhr-slides.gwhr-zoom .gwhr-slide .gwhr-hero__image,
	.gwhr-hero .gwhr-slides.gwhr-zoom .gwhr-slide.is-active .gwhr-hero__image {
		transform: scale(1.01);
		transition: none;
	}
}
