/**
 * Homepage — Banner hero
 * @file assets/css/homepage/banner.css
 */

.fd-banner-hero {
	position: relative;
	width: 100%;
	height: 100svh;
	min-height: 100svh;
	overflow: hidden;
}

.fd-banner-hero__slides {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.fd-banner-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.55s ease;
	pointer-events: none;
}

.fd-banner-hero__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.fd-banner-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
}

.fd-banner-hero__slide--placeholder {
	background: #051e33;
}

.fd-banner-hero__image--placeholder {
	object-fit: cover;
	object-position: center center;
}

/* Camada 1: escurecimento uniforme */
.fd-banner-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgb(0 0 0 / 15%);
	pointer-events: none;
}

/* Camada 2: gradiente da marca por cima */
.fd-banner-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(
		to top,
		#051e33 0%,
		rgb(5 30 51 / 92%) 14%,
		rgb(5 30 51 / 78%) 35%,
		rgb(5 30 51 / 58%) 55%,
		rgb(5 30 51 / 38%) 75%,
		rgb(5 30 51 / 18%) 100%
	);
	pointer-events: none;
}

/*
 * Header fixo: já não ocupa fluxo — o banner ocupa o ecrã inteiro;
 * o menu fica por cima (transparente no topo).
 */
.home .fd-banner-hero {
	margin-top: 0;
}

/* Título — em baixo, à esquerda, grande */
.fd-banner-hero__headline {
	position: absolute;
	z-index: 3;
	left: 5vw;
	bottom: clamp(1.75rem, 5vh, 3.5rem);
	width: min(90vw, 52rem);
	margin: 0;
	font-family: var(--fd-font-family, "korolev-compressed", sans-serif);
	color: var(--fd-color-white, #fff);
	text-transform: uppercase;
	font-weight: 700;
	line-height: 1;
	letter-spacing: normal;
}

.fd-banner-hero__panel {
	display: none;
}

.fd-banner-hero__panel.is-active {
	display: block;
}

.fd-banner-hero__link {
	color: inherit;
	text-decoration: none;
}

.fd-banner-hero__link:hover,
.fd-banner-hero__link:focus-visible {
	color: var(--fd-color-muted, #a2bacc);
}

.fd-banner-hero__link:focus-visible {
	outline: 2px solid var(--fd-color-white, #fff);
	outline-offset: 4px;
}

.fd-banner-hero__badge {
	display: inline-block;
	width: fit-content;
	margin: 0 0 clamp(0.65rem, 1.5vh, 1rem);
	padding: 0.28em 0.85em;
	background: #edca57;
	color: var(--fd-color-dark, #051e33);
	font-family: var(--fd-font-family, "korolev-compressed", sans-serif);
	font-size: clamp(0.95rem, 1.9vw, 1.45rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: normal;
	text-transform: uppercase;
}

.fd-banner-hero__headline-line {
	margin: 0;
	font-size: clamp(1.85rem, 6.5vw, 5.35rem);
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.fd-banner-hero__headline-line + .fd-banner-hero__headline-line {
	margin-top: 0;
}

.fd-banner-hero__arrows {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-top: clamp(2.5rem, 7vh, 4.5rem);
	color: var(--fd-color-white, #fff);
}

.fd-banner-hero__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	line-height: 0;
	cursor: pointer;
	color: inherit;
}

.fd-banner-hero__arrow:hover,
.fd-banner-hero__arrow:focus-visible {
	color: var(--fd-color-muted, #a2bacc);
}

.fd-banner-hero__arrow:focus-visible {
	outline: 2px solid currentcolor;
	outline-offset: 3px;
}

.fd-banner-hero__arrow svg {
	width: clamp(1.25rem, 3vw, 1.75rem);
	height: clamp(1.25rem, 3vw, 1.75rem);
}
