/**
 * Hero Section Styles
 *
 * @package colativo
 */

.hero-section {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding-bottom: 40px;
}

.hero-video {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%);
	z-index: 1;
	object-fit: cover;
}

/* Vimeo hero: cobre o viewport, sem controles, clique direito bloqueado */
.hero-vimeo-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}
.hero-vimeo-inner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-height: 100vh;
	min-width: 177.78vh;
	transform: translate(-50%, -50%);
	pointer-events: none;
}
.hero-vimeo-inner iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
/* Overlay que bloqueia interação (clique direito e cliques no player) */
.hero-vimeo-noctx {
	position: absolute;
	inset: 0;
	z-index: 2;
	cursor: default;
	pointer-events: auto;
	user-select: none;
	-webkit-user-select: none;
}

/* Vídeo desktop: visível apenas em telas maiores */
.hero-video-desktop {
	display: block;
}

.hero-video-mobile {
	display: none;
}

/* Vídeo mobile: visível apenas em telas menores */
@media (max-width: 768px) {
	.hero-video-desktop {
		display: none;
	}
	
	.hero-video-mobile {
		display: block;
		/* Vídeo mobile: full width, corta para manter proporção */
		width: 100%;
		height: 100%;
		min-width: 100%;
		min-height: 100%;
		object-fit: cover;
		object-position: center;
	}
	
	/* Ajustar container do hero no mobile para acomodar vídeo vertical */
	.hero-section {
		min-height: 100vh;
		height: auto;
		/* Manter alinhamento inferior do conteúdo */
		align-items: flex-end;
	}
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.hero-overlay::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 250px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero-overlay::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 300px;
	background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Mobile: aumentar altura do fade inferior */
@media (max-width: 768px) {
	.hero-overlay::after {
		height: 400px;
		background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
	}
}

.hero-content {
	position: relative;
	width: 100%;
	z-index: 2;
}

.hero-bottom {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 2rem;
}

.hero-frase {
	flex: 0 0 auto;
	max-width: 350px;
}

.hero-frase p {
	margin: 0;
	font-size: 24px;
	font-family: 'Alfarn', sans-serif;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	text-transform: uppercase;
}

.hero-scroll-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 60px;
}

.hero-arrow {
	color: #ffffff;
	animation: bounce 2s infinite;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
	cursor: pointer;
	transition: transform 0.3s ease;
}

.hero-arrow:hover {
	transform: translateY(5px);
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.hero-content {
		padding-bottom: 2rem;
	}

	.hero-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 2rem;
	}

	.hero-frase p {
		font-size: 1.5rem;
	}

	.hero-scroll-indicator {
		align-self: center;
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.hero-frase p {
		font-size: 1.25rem;
	}

	.hero-arrow {
		width: 32px;
		height: 32px;
	}
}
