/* Albizia Apartments Hero */

.albizia-hero-fullscreen {
	--albizia-hero-offset: 0px;
	--albizia-hero-fallback: none;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	height: 100vh;
	height: 100svh;
	height: 100dvh;
	position: relative;
	padding-top: var(--albizia-hero-offset, 0px);
	background-color: #050505;
}

.albizia-hero-background {
	position: absolute;
	left: 0;
	right: 0;
	top: var(--albizia-hero-offset, 0px);
	bottom: 0;
	overflow: hidden;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 0;
	background-color: #050505;
}

.albizia-hero-overlay {
	display: none;
}

.albizia-hero-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: var(--albizia-hero-offset, 0px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding-bottom: clamp(4rem, 12vw, 7rem);
	z-index: 2;
}

.albizia-hero-content::after {
	display: none;
}

.albizia-hero-content-inner {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
}

.albizia-hero-badge {
	position: absolute;
	bottom: clamp(1rem, 3vw, 3rem);
	left: clamp(1rem, 4vw, 3rem);
	width: clamp(90px, 14vw, 170px);
	margin: 0;
	z-index: 3;
	pointer-events: none;
	filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.25));
	transform-origin: bottom left;
}

.albizia-hero-badge img {
	display: block;
	width: 100%;
	height: auto;
}

.albizia-hero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.albizia-hero-fallback-picture {
	display: block;
	width: 100%;
	height: 100%;
}

.albizia-hero-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.albizia-scroll-indicator {
	position: absolute;
	bottom: clamp(0.5rem, 1.5vw, 1rem);
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	color: var(--albizia-text);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.albizia-scroll-icon {
	width: clamp(45px, 6vw, 70px);
	max-width: 100%;
	height: auto;
	opacity: 0;
	animation:
		albiziaScrollFade 0.8s ease-out forwards,
		albiziaScrollBounce 2.4s ease-in-out 0.8s infinite;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

@media (max-width: 768px) {
	.albizia-hero-fullscreen {
		margin-top: 0;
		min-height: auto;
		height: auto;
		display: block;
		align-items: stretch;
		justify-content: flex-start;
		--albizia-hero-offset: calc(76px + env(safe-area-inset-top, 0px));
		position: relative;
	}

	.albizia-hero-fullscreen::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		height: var(--albizia-hero-offset);
		background: #ffffff;
		z-index: 1;
		pointer-events: none;
	}

	.albizia-hero-background {
		position: relative;
		top: 0;
		bottom: auto;
		align-items: flex-start;
		justify-content: center;
		margin-top: 0;
		z-index: 0;
	}

	.albizia-hero-badge {
		top: calc(var(--albizia-hero-offset, 0px) + 0.85rem);
		bottom: auto;
		left: auto;
		right: clamp(0.75rem, 4vw, 1.4rem);
		width: clamp(74px, 24vw, 118px);
		transform-origin: top right;
	}

	.albizia-hero-content {
		padding-bottom: clamp(2.5rem, 15vw, 5.5rem);
	}

	.albizia-hero-video,
	.albizia-hero-fallback {
		width: 100%;
		height: auto;
		object-fit: contain;
		object-position: center top;
		display: block;
		margin: 0 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.albizia-hero-background {
		background-image: var(--albizia-hero-fallback);
		background-position: center;
		background-size: cover;
		background-repeat: no-repeat;
	}

	.albizia-hero-video {
		display: none;
	}

	.albizia-scroll-icon {
		animation: none !important;
		opacity: 1;
	}
}

@keyframes albiziaScrollFade {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes albiziaScrollBounce {
	0%,
	100% {
		transform: translateY(-4px);
	}

	50% {
		transform: translateY(-10px);
	}
}
