/* =========================================================
   ÖKOHAUS GER
   SMART-TIMBER™ INSIGHTS — CATEGORY HERO
   Applies only to body.page-insights-category
========================================================= */


/* =========================================================
   1. PAGE SHELL
========================================================= */

body.page-insights-category {
	background: #fff;
	color: #151629;
}

.page-insights-category .insights-page-shell {
	position: relative;
	background: #151629;
	overflow: hidden;
}


/* =========================================================
   2. HEADER / MENU OVER HERO
========================================================= */

/*
 * Το menu τοποθετείται πάνω από τη hero εικόνα.
 * Η συμπεριφορά sticky μετά το scroll συνεχίζει να ελέγχεται
 * από το υπάρχον JS.
 */

.page-insights-category #sticky-menu {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	width: 100%;
	background: transparent;
	transition:
		background-color .3s ease,
		box-shadow .3s ease,
		transform .3s ease;
}

.page-insights-category #sticky-menu .logo_menu {
	position: relative;
	z-index: 2;
}

/*
 * Όταν το υπάρχον JS προσθέσει .sticky,
 * το menu γίνεται σταθερό και αποκτά σκούρο background.
 */

.page-insights-category #sticky-menu.sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(21,22,41,.96);
	box-shadow: 0 10px 30px rgba(0,0,0,.16);

	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

/*
 * Κρατάμε τα desktop dropdowns ευανάγνωστα
 * όταν το menu βρίσκεται πάνω στη φωτογραφία.
 */

.page-insights-category #sticky-menu:not(.sticky) .desktop-menu,
.page-insights-category #sticky-menu:not(.sticky) .desktop-menu a {
	color: #fff;
}

.page-insights-category #sticky-menu:not(.sticky) .elx_menu > li > a {
	color: #fff;
}

.page-insights-category #sticky-menu:not(.sticky) .quote_sticky {
	color: #fff;
}

/*
 * Εξασφαλίζει ότι το mobile menu button παραμένει ορατό.
 */

.page-insights-category .mob-menu-icon,
.page-insights-category .mob-menu-close-icon {
	position: relative;
	z-index: 3;
}


/* =========================================================
   3. HERO BASE
========================================================= */

.page-insights-category .insights-hero {
	position: relative;
	width: 100%;
	min-height: 620px;
	background: #151629;
	overflow: hidden;
	isolation: isolate;
}

.page-insights-category .insights-hero-swiper {
	position: relative;
	width: 100%;
	height: clamp(620px, 52vw, 820px);
	min-height: 620px;
	background: #151629;
}

.page-insights-category .insights-hero-swiper,
.page-insights-category .insights-hero-swiper .swiper-wrapper,
.page-insights-category .insights-hero-swiper .swiper-slide {
	width: 100%;
	height: 100%;
}

.page-insights-category .insights-hero-slide {
	position: relative;
	overflow: hidden;
	background: #151629;
}

.page-insights-category .insights-hero-slide picture {
	display: block;
	width: 100%;
	height: 100%;
}

.page-insights-category .insights-hero-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transform: scale(1.01);
	will-change: transform;
}


/* =========================================================
   4. INDIVIDUAL IMAGE POSITIONING
========================================================= */

/*
 * Hero 1 — Factory + Engineers
 */

.page-insights-category .insights-hero-slide:first-child img {
	object-position: center 48%;
}

/*
 * Hero 2 — Materials
 */

.page-insights-category .insights-hero-slide:nth-child(2) img {
	object-position: center 52%;
}


/* =========================================================
   5. CINEMATIC OVERLAY
========================================================= */

.page-insights-category .insights-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;

	background:
		linear-gradient(
			90deg,
			rgba(7,8,20,.95) 0%,
			rgba(12,13,30,.86) 24%,
			rgba(14,15,32,.64) 44%,
			rgba(14,15,32,.28) 68%,
			rgba(14,15,32,.10) 100%
		),
		linear-gradient(
			0deg,
			rgba(5,6,16,.54) 0%,
			rgba(5,6,16,.20) 32%,
			rgba(5,6,16,0) 58%
		);
}


/* =========================================================
   6. HERO CONTENT
========================================================= */

.page-insights-category .insights-hero-content {
	position: absolute;
	inset: 0;
	z-index: 4;

	display: flex;
	align-items: center;

	padding-top: 110px;
	padding-bottom: 90px;

	pointer-events: none;
}

.page-insights-category .insights-hero-copy {
	width: min(720px, 62%);
	color: #fff;
	pointer-events: auto;
}

.page-insights-category .insights-hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 12px;

	margin: 0 0 18px;

	color: var(--Orange);
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.page-insights-category .insights-hero-kicker > span {
	display: block;
	width: 42px;
	height: 3px;

	background: var(--Orange);
	border-radius: 8px;
	flex: 0 0 auto;
}

.page-insights-category .insights-hero-copy h1 {
	max-width: 760px;
	margin: 0;

	color: #fff;
	font-family: inherit;
	font-size: clamp(42px, 5.25vw, 78px);
	font-weight: 900;
	line-height: .98;
	letter-spacing: -.04em;
	text-transform: none;

	text-wrap: balance;
}

.page-insights-category .insights-hero-line {
	display: block;
	width: 76px;
	height: 4px;

	margin: 28px 0 24px;

	background: var(--Orange);
	border-radius: 8px;
}

.page-insights-category .insights-hero-copy p {
	max-width: 650px;
	margin: 0;

	color: rgba(255,255,255,.84);
	font-size: clamp(17px, 1.25vw, 21px);
	font-weight: 400;
	line-height: 1.62;
	letter-spacing: 0;
}


/* =========================================================
   7. HERO CONTROLS
========================================================= */

.page-insights-category .insights-hero-controls {
	position: absolute;
	left: 50%;
	bottom: 28px;
	z-index: 6;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;

	transform: translateX(-50%);
}

.page-insights-category .insights-hero-controls .ui-slider-arrow {
	width: 50px;
	height: 50px;
	flex: 0 0 50px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	border: 1px solid rgba(255,255,255,.34);
	border-radius: 50%;

	background: rgba(21,22,41,.58);
	color: #fff;

	cursor: pointer;

	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);

	transition:
		color .25s ease,
		background-color .25s ease,
		border-color .25s ease,
		transform .25s ease,
		opacity .25s ease;
}

.page-insights-category .insights-hero-controls .ui-slider-arrow svg {
	width: 23px;
	height: 23px;
	fill: none;
}

.page-insights-category .insights-hero-controls .ui-slider-arrow path {
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.page-insights-category .insights-hero-controls .ui-slider-arrow:hover {
	background: var(--Orange);
	border-color: var(--Orange);
	color: #151629;
	transform: translateY(-2px);
}

.page-insights-category .insights-hero-controls .ui-slider-arrow:active {
	transform: translateY(0);
}

.page-insights-category .insights-hero-controls .ui-slider-arrow:focus-visible {
	outline: 3px solid var(--Orange);
	outline-offset: 3px;
}

.page-insights-category .insights-hero-controls .swiper-button-disabled {
	opacity: .4;
	cursor: default;
	pointer-events: none;
}


/* =========================================================
   8. HERO PAGINATION
========================================================= */

.page-insights-category .insights-hero-pagination {
	position: static !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;

	width: auto !important;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.page-insights-category .insights-hero-pagination .swiper-pagination-bullet {
	width: 22px;
	height: 5px;

	margin: 0 !important;

	border: 0;
	border-radius: 20px;

	background: rgba(255,255,255,.42);
	opacity: 1;

	cursor: pointer;

	transition:
		width .25s ease,
		background-color .25s ease,
		opacity .25s ease;
}

.page-insights-category .insights-hero-pagination .swiper-pagination-bullet:hover {
	background: rgba(255,255,255,.72);
}

.page-insights-category .insights-hero-pagination .swiper-pagination-bullet-active {
	width: 40px;
	background: var(--Orange);
}


/* =========================================================
   9. FADE TRANSITION REFINEMENT
========================================================= */

.page-insights-category .insights-hero-swiper.swiper-fade
.swiper-slide {
	pointer-events: none;
}

.page-insights-category .insights-hero-swiper.swiper-fade
.swiper-slide-active {
	pointer-events: auto;
}

.page-insights-category .insights-hero-swiper
.swiper-slide-active img {
	animation: insightsHeroZoom 8s ease-out forwards;
}

@keyframes insightsHeroZoom {
	from {
		transform: scale(1.01);
	}

	to {
		transform: scale(1.045);
	}
}


/* =========================================================
   10. REMOVE OLD HERO BEHAVIOUR ON INSIGHTS CATEGORY
========================================================= */

/*
 * Το νέο hero δεν χρησιμοποιεί .hero_cont / #heroid.
 * Αν κατά τη μετάβαση παραμείνει προσωρινά παλιό markup,
 * το κρύβουμε μόνο στη συγκεκριμένη σελίδα.
 */

.page-insights-category #heroid.hero_cont {
	display: none !important;
}

.page-insights-category .container-header_title {
	display: none;
}

/*
 * Το main content πρέπει να ξεκινά ακριβώς μετά το hero.
 */

.page-insights-category .insights-hero + main,
.page-insights-category .insights-page-shell + main {
	margin-top: 0;
	padding-top: 0;
}


/* =========================================================
   11. TABLET
========================================================= */

@media (max-width: 1199px) {

	.page-insights-category .insights-hero-swiper {
		height: 700px;
		min-height: 700px;
	}

	.page-insights-category .insights-hero-copy {
		width: min(690px, 72%);
	}

	.page-insights-category .insights-hero-overlay {
		background:
			linear-gradient(
				90deg,
				rgba(7,8,20,.94) 0%,
				rgba(12,13,30,.82) 32%,
				rgba(14,15,32,.48) 66%,
				rgba(14,15,32,.15) 100%
			),
			linear-gradient(
				0deg,
				rgba(5,6,16,.48) 0%,
				rgba(5,6,16,0) 55%
			);
	}
}


@media (max-width: 991px) {
	.page-insights-category #sticky-menu {
		position: absolute;
	}

	.page-insights-category #sticky-menu.sticky {
		position: fixed;
	}

	.page-insights-category .insights-hero-swiper {
		height: 660px;
		min-height: 660px;
	}

	.page-insights-category .insights-hero-content {
		padding-top: 110px;
		padding-bottom: 110px;
	}

	.page-insights-category .insights-hero-copy {
		width: min(650px, 84%);
	}

	.page-insights-category .insights-hero-copy h1 {
		font-size: clamp(42px, 7vw, 66px);
	}

	.page-insights-category .insights-hero-copy p {
		max-width: 590px;
		font-size: 18px;
	}

	.page-insights-category .insights-hero-controls {
		bottom: 24px;
	}
}


/* =========================================================
   12. MOBILE
========================================================= */

@media (max-width: 767px) {

	.page-insights-category .insights-hero {
		min-height: 650px;
	}

	.page-insights-category .insights-hero-swiper {
		height: 650px;
		min-height: 650px;
	}

	.page-insights-category .insights-hero-slide img {
		object-position: 60% center;
	}

	.page-insights-category
	.insights-hero-slide:nth-child(2) img {
		object-position: 55% center;
	}

	.page-insights-category .insights-hero-overlay {
		background:
			linear-gradient(
				0deg,
				rgba(7,8,21,.97) 0%,
				rgba(9,10,24,.88) 34%,
				rgba(10,11,26,.58) 68%,
				rgba(10,11,26,.20) 100%
			);
	}

	.page-insights-category .insights-hero-content {
		align-items: flex-end;

		padding-top: 120px;
		padding-bottom: 125px;
	}

	.page-insights-category .insights-hero-copy {
		width: 100%;
		max-width: none;
	}

	.page-insights-category .insights-hero-kicker {
		margin-bottom: 14px;
		font-size: 12px;
		letter-spacing: .065em;
	}

	.page-insights-category .insights-hero-kicker > span {
		width: 34px;
		height: 2px;
	}

	.page-insights-category .insights-hero-copy h1 {
		max-width: 100%;
		font-size: clamp(36px, 10.8vw, 52px);
		line-height: 1;
		letter-spacing: -.035em;
	}

	.page-insights-category .insights-hero-line {
		width: 58px;
		height: 3px;

		margin: 20px 0 18px;
	}

	.page-insights-category .insights-hero-copy p {
		max-width: 100%;
		font-size: 16px;
		line-height: 1.5;
		color: rgba(255,255,255,.84);
	}

	.page-insights-category .insights-hero-controls {
		bottom: 24px;
		gap: 11px;
	}

	.page-insights-category
	.insights-hero-controls .ui-slider-arrow {
		width: 44px;
		height: 44px;
		flex-basis: 44px;
	}

	.page-insights-category
	.insights-hero-controls .ui-slider-arrow svg {
		width: 20px;
		height: 20px;
	}

	.page-insights-category
	.insights-hero-pagination .swiper-pagination-bullet {
		width: 18px;
		height: 4px;
	}

	.page-insights-category
	.insights-hero-pagination .swiper-pagination-bullet-active {
		width: 32px;
	}
}


/* =========================================================
   13. SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

	.page-insights-category .insights-hero {
		min-height: 620px;
	}

	.page-insights-category .insights-hero-swiper {
		height: 620px;
		min-height: 620px;
	}

	.page-insights-category .insights-hero-content {
		padding-bottom: 115px;
	}

	.page-insights-category .insights-hero-copy h1 {
		font-size: 36px;
	}

	.page-insights-category .insights-hero-copy p {
		font-size: 15px;
	}
}


/* =========================================================
   14. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

	.page-insights-category
	.insights-hero-swiper .swiper-slide-active img {
		animation: none !important;
		transform: scale(1.01);
	}

	.page-insights-category .insights-hero *,
	.page-insights-category .insights-hero-controls * {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}