/**
 * Hero pattern styles
 * NBS Theme – obraz tła z overlay, biały tekst. Przyciski: klasa cta-button (style.css).
 * Szerokość 100vw, wysokość 720px, odstępy w rem zgodne z designem.
 */

.nbs-hero {
	position: relative;
	overflow: hidden;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	height: 720px;
	box-sizing: border-box;
	padding: 10rem 0 4rem 0;
	display: flex;
	justify-content: center;
	text-align: left;
	color: var(--wp--preset--color--white);
}

/* Obraz tła – cover, przy przycięciu centrum góra */
.nbs-hero__image {
	position: absolute;
	inset: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.nbs-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

/* Overlay gradient na obrazie */
.nbs-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		color-mix(in srgb, var(--wp--preset--color--int-dark) 80%, transparent) 0%,
		color-mix(in srgb, var(--wp--preset--color--accent-blue) 35%, transparent) 100%
	);
	pointer-events: none;
	z-index: 1;
}

/* Treść nad overlay – sectionWidth z theme.json, wyrównanie do lewej */
.nbs-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	max-width: var(--wp--custom--section-width, 1140px);
	margin-left: var(--wp--custom--horizontal-section-margin);;
	margin-right: var(--wp--custom--horizontal-section-margin);;

}

/* Nadpisanie inline spacing z patternu – odstępy sterowane z CSS (rem) */
.nbs-hero .body-default {
	margin-bottom: 2rem;
}

.nbs-hero h1 {
	margin-bottom: 2.5rem;
	max-width: 35rem;
	margin-right: auto;
}

.nbs-hero .body-large {
	margin-bottom: 3rem;
	max-width: 35rem;
	margin-right: auto;
	/* Tylko w hero: white; reszta body-large bez zmiany (style.css) */
	color: var(--wp--preset--color--white) !important;
}

.nbs-hero .wp-block-buttons {
	gap: 1.5rem;
	justify-content: flex-start;
}

.nbs-hero .cta-button .wp-block-button__link {
	padding: 1rem 2rem;
}

/* Wszystkie napisy hero w kolorze white z theme.json */
.nbs-hero .body-default,
.nbs-hero h1,
.nbs-hero .wp-block-button__link {
	color: var(--wp--preset--color--white) !important;
}
