/* ==========================================================================
   Hero  [oh_hero]
   ========================================================================== */

.oh-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(560px, 82vh, 820px);
	overflow: hidden;
	color: #fff;
	background-color: var(--oh-color-dark);
	isolation: isolate;
}

/* Media */
.oh-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.oh-hero .oh-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.oh-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(22, 30, 24, 0.55) 0%, rgba(22, 30, 24, 0.28) 40%, rgba(22, 30, 24, 0) 70%),
		linear-gradient(180deg, rgba(22, 30, 24, 0.15) 0%, rgba(22, 30, 24, 0) 30%, rgba(22, 30, 24, 0.2) 100%);
}

/* Content */
.oh-hero {
	--oh-hero-space-title: clamp(18px, 2vw, 24px);   /* eyebrow -> title */
	--oh-hero-space-text: clamp(20px, 2.2vw, 28px);  /* title -> text */
	--oh-hero-space-btn: clamp(32px, 3.5vw, 44px);   /* text -> button */
}

.oh-hero__inner {
	/* Πάνω: ύψος του floating header + αέρας, ώστε το κείμενο να μην κρύβεται */
	padding-top: calc(var(--oh-header-offset, 128px) + clamp(16px, 4vh, 48px));
	padding-bottom: clamp(120px, 14vh, 168px);
}

.oh-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 560px;
}

/* Τα κενά ορίζονται εδώ με αυξημένο specificity ώστε να μην τα
   μηδενίζουν οι κανόνες του Astra/Elementor για h1/p. */
.oh-hero .oh-hero__content > * {
	margin: 0;
}

.oh-hero .oh-hero__content > .oh-hero__title {
	margin-top: var(--oh-hero-space-title);
}

.oh-hero .oh-hero__content > .oh-hero__text {
	margin-top: var(--oh-hero-space-text);
}

.oh-hero .oh-hero__content > .oh-hero__btn {
	margin-top: var(--oh-hero-space-btn);
}

.oh-hero .oh-hero__content > :first-child {
	margin-top: 0;
}

.oh-hero__eyebrow {
	color: rgba(255, 255, 255, 0.92);
}

/* Όταν το eyebrow είναι το H1 της σελίδας: ίδια εμφάνιση με το απλό eyebrow
   (υπερισχύει των κανόνων h1 του Astra / Elementor). */
.elementor .oh-hero h1.oh-hero__eyebrow,
.oh-hero h1.oh-hero__eyebrow {
	padding: 0;
	font-family: var(--oh-font-body) !important;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
}

.oh-hero p.oh-hero__title {
	margin-bottom: 0;
}

.oh-hero .oh-hero__title {
	padding: 0;
	font-family: var(--oh-font-heading);
	font-size: clamp(2.75rem, 5.6vw, 4.75rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.oh-hero .oh-hero__text {
	max-width: 38ch;
	padding: 0;
	font-family: var(--oh-font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
}

.oh-hero .oh-hero__btn {
	padding: 17px 32px;
}

/* Scroll indicator */
.oh-hero__scroll,
.oh-hero__scroll:hover,
.oh-hero__scroll:focus {
	position: absolute;
	right: clamp(16px, 3vw, 40px);
	bottom: clamp(16px, 3vw, 32px);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.oh-hero__scroll {
	opacity: 0.85;
	animation: oh-hero-bounce 2.4s ease-in-out infinite;
	transition: opacity 0.2s ease;
}

.oh-hero__scroll:hover,
.oh-hero__scroll:focus-visible {
	opacity: 1;
}

/* Entrance animation */
.oh-hero__content > * {
	animation: oh-hero-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.oh-hero__content > *:nth-child(2) { animation-delay: 0.1s; }
.oh-hero__content > *:nth-child(3) { animation-delay: 0.2s; }
.oh-hero__content > *:nth-child(4) { animation-delay: 0.3s; }

@keyframes oh-hero-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}

@keyframes oh-hero-bounce {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
	.oh-hero__content > *,
	.oh-hero__scroll {
		animation: none;
	}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
	.oh-hero {
		min-height: clamp(540px, 75svh, 760px);
	}

	.oh-hero__overlay {
		background:
			linear-gradient(90deg, rgba(22, 30, 24, 0.6) 0%, rgba(22, 30, 24, 0.3) 55%, rgba(22, 30, 24, 0.05) 100%),
			linear-gradient(180deg, rgba(22, 30, 24, 0.15) 0%, rgba(22, 30, 24, 0) 30%, rgba(22, 30, 24, 0.2) 100%);
	}
}

/* Mobile: το περιεχόμενο κάτω, πάνω σε σκούρο gradient */
@media (max-width: 767px) {
	.oh-hero {
		align-items: flex-end;
		min-height: clamp(560px, 92svh, 760px);
	}

	.oh-hero .oh-hero__media img {
		object-position: 65% center;
	}

	.oh-hero__overlay {
		background: linear-gradient(180deg, rgba(22, 30, 24, 0.15) 0%, rgba(22, 30, 24, 0.25) 35%, rgba(22, 30, 24, 0.75) 100%);
	}

	.oh-hero__inner {
		padding-block: 140px 104px;
	}

	.oh-hero__eyebrow,
	.oh-hero h1.oh-hero__eyebrow {
		font-size: 0.6875rem;
		letter-spacing: 0.14em;
	}

	.oh-hero .oh-hero__title {
		font-size: clamp(2.5rem, 11vw, 3.25rem);
	}

	.oh-hero .oh-hero__text {
		font-size: 1rem;
	}

	.oh-hero__scroll,
	.oh-hero__scroll:hover,
	.oh-hero__scroll:focus {
		right: 50%;
		bottom: 16px;
		transform: translateX(50%);
	}

	.oh-hero__scroll {
		animation: none;
	}
}

/* Μικρά κινητά */
@media (max-width: 380px) {
	.oh-hero__btn {
		width: 100%;
		justify-content: center;
	}
}

/* Landscape κινητά / χαμηλές οθόνες */
@media (max-height: 520px) and (orientation: landscape) {
	.oh-hero {
		align-items: center;
		min-height: 100svh;
	}

	.oh-hero__inner {
		padding-block: 48px;
	}

	.oh-hero .oh-hero__title {
		font-size: clamp(2.25rem, 7vh, 3rem);
	}
}
