/* Haags.nl — "hero message"-section (Bericht, derde section homepage).
 *
 * Etch-NATIEF formaat: elke top-level regel is één class-style (id = classnaam),
 * @media GENEST, pseudo via &-nesting. StylesParser leest dit als Etch-stijlen
 * (via de HaagsMessage-pattern) → het ontwerp is ook in de builder-canvas te zien.
 * Fonts, box-sizing-reset, GSAP-helpers en de builder-reveal-overrides staan in
 * MessageSection.global.css. */

.hero-message {
	position: relative;
	width: 100%;
	/* Compact + gecentreerd, met iets meer dan één viewport zodat de scroll-reveal
	 * genoeg afstand heeft (zonder de enorme lege ruimte van de demo). */
	min-height: 120vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(4rem, 9vh, 8rem) 2rem;
	background-color: #2a9d6e;
	overflow: hidden;

	&::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		pointer-events: none;
		z-index: 0;
		background-image:
			linear-gradient(90deg, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
			linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
		background-size:
			100px 100%,
			20px 100%;
		background-position:
			-2px 0,
			-1px 0;
	}

	@media (max-width: 760px) {
		padding: 4rem 1rem;
		min-height: auto;
	}
}

.hero-message__container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.hero-message__text-stack {
	position: relative;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6rem;

	@media (max-width: 760px) {
		gap: 3.5rem;
	}
}

/* ---- Koppen ---- */
.hero-message__heading {
	font-size: clamp(2.75rem, 7.2vw, 7.2rem);
	font-weight: 700;
	line-height: 0.9;
	text-align: center;
	margin: 0;
	max-width: none;
	letter-spacing: -0.35vw;
	text-transform: uppercase;
	font-family: "Antonio", system-ui, sans-serif;
	position: relative;
	z-index: 1;
	/* Startkleur (ghosted geel); GSAP scrubt naar vol geel. Zonder GSAP (reduced
	 * motion) meteen vol geel; in de builder forceert een override in global.css. */
	color: rgba(247, 232, 125, 0.15);

	@media (prefers-reduced-motion: reduce) {
		color: #f7e87d;
	}

	@media (max-width: 760px) {
		font-size: clamp(2.5rem, 8vw, 3.5rem);
		line-height: 0.95;
	}
}

/* ---- Badge (wit HAAGS.NL-vlak dat over de koppen klapt) ---- */
.hero-message__badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(3deg);
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0.5vw solid #2a9d6e;
	/* Ingeklapt bij rust; GSAP klapt 'm open bij het scrollen. */
	clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);

	@media (prefers-reduced-motion: reduce) {
		clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
	}
}

.hero-message__badge-inner {
	background: #ffffff;
	padding: clamp(0.75rem, 1vw, 1.25rem) clamp(1.25rem, 1.2vw, 1.5rem);

	@media (max-width: 760px) {
		padding: 0.75rem 1.25rem;
	}
}

.hero-message__badge-text {
	font-size: clamp(3.3rem, 8.5vw, 8.5rem);
	font-weight: 700;
	color: #2a9d6e;
	margin: 0;
	letter-spacing: -0.35vw;
	text-transform: uppercase;
	font-family: "Antonio", system-ui, sans-serif;
	line-height: 0.9;

	@media (max-width: 760px) {
		font-size: clamp(2.5rem, 8vw, 3.3rem);
	}
}

/* ---- Paragraaf ---- */
.hero-message__body {
	margin-top: clamp(2.5rem, 5vw, 5rem);
	max-width: 65rem;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 0 2.5rem;

	@media (max-width: 760px) {
		margin-top: 3rem;
	}
}

.hero-message__text {
	font-size: 2rem;
	line-height: 1.6;
	text-align: center;
	color: #ffffff;
	font-weight: 400;
	font-family: "Antonio", system-ui, sans-serif;

	@media (max-width: 760px) {
		font-size: 1.5rem;
	}
}
