/* ==========================================================================
   PÁGINA INICIAL — HERO
   Emblema animado ao lado do título (conjunto centrado); filete dourado e,
   por baixo, texto de apoio, botões e garantias.
   ========================================================================== */

.home-hero {
	background: var(--c-primary-700);
}

.hero {
	position: relative;
	display: flex;
	min-height: clamp(500px, 68svh, 680px);
	overflow: hidden;
	isolation: isolate;
	color: var(--c-white);
}

/* Fundo */
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: url("../img/hero-sala.webp");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	filter: saturate(0.78) contrast(1.03);
}

.hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		/* Véu extra atrás do header: mais opaco em cima, some antes do título. */
		linear-gradient(180deg, rgba(2, 35, 72, 0.55) 0%, rgba(2, 35, 72, 0) 38%),
		radial-gradient(90% 80% at 50% 26%, rgba(3, 50, 105, 0.64) 0%, rgba(2, 35, 72, 0.91) 62%, rgba(2, 29, 60, 0.96) 100%);
}

.hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding: clamp(5rem, 11vh, 7.5rem) var(--gutter) clamp(2.75rem, 6vh, 4.5rem);
	text-align: center;
}

/* Emblema + título, lado a lado, como um só conjunto. */
.hero__top {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1.25rem, 3vw, 2.5rem);
}

.hero__badge {
	flex: none;
	width: clamp(88px, 11vw, 144px);
	color: var(--c-white);
}

.hero__badge svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.hero__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(1.9rem, 3.5vw, 3.2rem);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.08;
	color: var(--c-white);
	text-align: left;
	text-wrap: balance;
}

.hero__rule {
	width: 64px;
	height: 1px;
	margin: clamp(1.35rem, 2.6vw, 2rem) 0 0;
	background: var(--c-gold);
	opacity: 0.85;
}

.hero__lead {
	max-width: 56ch;
	margin: clamp(1.35rem, 2.6vw, 2rem) 0 0;
	font-size: var(--fs-base);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.82);
	text-wrap: pretty;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
	margin-top: 1.5rem;
}

.hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.9rem;
	padding: 0.9em 1.6em;
	border: 1px solid transparent;
	border-radius: 2px;
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero__btn--primary {
	border-color: var(--c-white);
	background: var(--c-white);
	color: var(--c-primary);
}

.hero__btn--primary:hover {
	border-color: var(--c-gold-soft);
	background: var(--c-gold-soft);
	color: var(--c-primary);
}

.hero__btn--ghost {
	border-color: rgba(255, 255, 255, 0.45);
	background: transparent;
	color: var(--c-white);
}

.hero__btn--ghost:hover {
	border-color: var(--c-white);
	background: var(--c-white);
	color: var(--c-primary);
}

.hero__btn:focus-visible {
	outline: 3px solid var(--c-gold-soft);
	outline-offset: 3px;
}

/* Telemóvel */
@media (max-width: 800px) {
	.hero {
		min-height: auto;
	}

	.hero__inner {
		padding: 7rem var(--gutter) 3.25rem;
	}

	.hero__top {
		flex-direction: column;
		align-items: center;
		gap: 1.25rem;
	}

	.hero__badge {
		width: 92px;
	}

	.hero__title {
		font-size: clamp(1.8rem, 6.4vw, 2.5rem);
		text-align: center;
	}

	.hero__lead {
		max-width: none;
	}
}

@media (max-width: 480px) {
	.hero__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.hero__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero__btn {
		transition: none;
	}
}
