/* =========================================================
   HERO — hero.css (CLEAN)
   Pod markup z hero.php
   ========================================================= */

/* Section */
.hero {
	position: relative;
	min-height: var(--hero-height);
	overflow: hidden;
	isolation: isolate;
	padding-top: calc(var(--lp-nav-top) + var(--lp-nav-height));
	padding-bottom: var(--hero-pad-bottom);
}

/* Background */
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.hero__bg-video,
.hero__bg-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero__bg-video {
	object-fit: cover;
	object-position: center;
	z-index: 0;
	transform: translateZ(0);
}

.hero__bg-image {
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	z-index: -1;
}

.hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.38);
	z-index: 1;
	pointer-events: none;
}

/* Content container */
.hero__content {
	position: relative;
	z-index: 2;
	max-width: var(--container-max);
	margin: 0 auto;
	padding-left: var(--container-pad);
	padding-right: var(--container-pad);
	padding-top: 0;
	min-width: 0;
}

/* Shape */
.hero__shape {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	width: 100%;
	height: 57px;
	display: block;
	object-fit: cover;
	object-position: center bottom;
	z-index: 1;
	pointer-events: none;
	user-select: none;
}

/* Grid */
.hero__grid {
	display: grid;
	grid-template-columns: 1fr var(--hero-form-w);
	column-gap: 70px;
	align-items: start;
	min-width: 0;
}

.hero__left,
.hero__right {
	min-width: 0;
}

/* LEFT */
.hero__left {
	max-width: 760px;
	padding-top: var(--hero-pad-top);
}

/* Typo */
.hero__title,
.hero__subtitle,
.hero__description,
.hero__highlight,
.hero__usp-text {
	text-shadow: var(--hero-text-shadow);
}

.hero__title {
	margin: 0;
	font-family: var(--font-family-base);
	font-weight: 700;
	font-size: 48px;
	line-height: 130%;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.hero__subtitle {
	margin: 0;
	font-family: var(--font-family-base);
	font-weight: 300;
	font-size: 35px;
	line-height: 130%;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.hero__description {
	margin-top: var(--hero-gap-subtitle-desc);
	max-width: 660px;
	font-family: var(--font-family-base);
	font-weight: 400;
	font-size: 18px;
	line-height: 145%;
	color: #ffffff;
}

.hero__description > *:first-child {
	margin-top: 0;
}

.hero__description > *:last-child {
	margin-bottom: 0;
}

.hero__description p {
	margin: 0 0 12px 0;
}

.hero__highlight {
	margin-top: var(--hero-gap-desc-highlight);
	margin-bottom: 0;
	font-family: var(--font-family-base);
	font-weight: 700;
	font-size: 28px;
	line-height: 110%;
	letter-spacing: -0.02em;
	color: var(--color-secondary);
}

/* USP */
.hero__usp {
	margin-top: var(--hero-gap-highlight-usp);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--hero-usp-col-gap);
}

.hero__usp-item {
	display: flex;
	align-items: center;
	gap: 15px;
}

.hero__usp-icon {
	width: var(--hero-usp-icon-w);
	height: var(--hero-usp-icon-h);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.hero__usp-icon img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

.hero__usp-text {
	font-family: var(--font-family-base);
	font-weight: 400;
	font-size: 20px;
	line-height: 110%;
	color: #ffffff;
	white-space: pre-line;
}

/* RIGHT */
.hero__right {
	position: relative;
}

/* Form box */
.hero__form {
	width: var(--hero-form-w);
	min-height: var(--hero-form-h);
	height: auto;
	margin-top: var(--hero-form-top);
	background: var(--color-secondary);
	border-bottom: var(--hero-form-border-bottom) solid var(--color-primary);
	border-radius: var(--hero-form-radius);
	box-sizing: border-box;
	padding: 60px;
}

.hero__form-title {
	margin: 0;
	font-family: var(--font-family-base);
	font-weight: 700;
	font-size: 24px;
	line-height: 160%;
	color: var(--color-primary);
}

.hero__form-desc {
	margin: 0 0 10px 0;
	font-family: var(--font-family-base);
	font-weight: 400;
	font-size: 20px;
	line-height: 145%;
	color: var(--color-primary);
}

.hero__form-desc > *:first-child {
	margin-top: 0;
}

.hero__form-desc > *:last-child {
	margin-bottom: 0;
}

/* Scroll more */
.hero__more {
	position: absolute;
	left: 50%;
	top: calc(
		(var(--lp-nav-top) + var(--lp-nav-height))
		+ var(--hero-form-top)
		+ var(--hero-form-h)
		+ 25px
	);
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.hero__more-label {
	margin: 0;
	padding: 0;
	font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	font-weight: 700;
	font-size: 12px;
	line-height: 110%;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #ffffff;
	white-space: nowrap;
	text-shadow: var(--hero-text-shadow);
}

.hero__more-icon {
	width: 25px;
	height: 46px;
	display: block;
	background: url("https://flixcity.kreatorzybiznesu.pl/wp-content/uploads/2026/02/dowiedz_sie_wiecej.svg") center / contain no-repeat;
	animation: heroMoreBounce 2.1s ease-in-out infinite;
}

/* =========================================================
   CF7 — FORM
   ========================================================= */

.hero__form .wpcf7-form,
.hero__form .wpcf7-form p {
	margin: 0;
	padding: 0;
}

.hero__form .fc-form__fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: var(--fc-form-w);
}

.hero__form .fc-form__fields .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.hero__form .fc-form__fields .fc-input {
	box-sizing: border-box;
	width: var(--fc-form-w);
	height: var(--fc-input-h);
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid #FFFFFF;
	border-radius: 1px;
	font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 125%;
	color: #37205E;
	outline: none;
	transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.hero__form .fc-form__fields .fc-input::placeholder {
	color: #37205E;
	opacity: 1;
}

.hero__form .fc-form__fields .fc-input:focus {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.26);
	box-shadow: 0 8px 20px rgba(55, 32, 94, 0.12);
}

.hero__form .fc-form__consents {
	margin-top: 15px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: var(--fc-form-w);
}

.hero__form .fc-form__consents p {
	margin: 0;
	padding: 0;
	line-height: normal;
}

.hero__form .fc-form__consents .wpcf7-list-item {
	display: block;
	margin: 0;
	margin-left: 0;
}

.hero__form .fc-form__consents .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	width: var(--fc-form-w);
	min-height: 16px;
	margin: 0;
	padding: 0;
	cursor: pointer;
	line-height: 1;
}

.hero__form .fc-form__consents input.fc-consent[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	background: #FFFFFF;
	border: 0.5px solid #FFFFFF;
	border-radius: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 16px;
}

.hero__form .fc-form__consents input.fc-consent[type="checkbox"]:checked::after {
	content: "";
	width: 8px;
	height: 8px;
	background: #37205E;
	border-radius: 1px;
}

.hero__form .fc-form__consents .wpcf7-list-item-label {
	font-family: "Jost", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	font-weight: 400;
	font-size: 8px;
	line-height: 9px;
	color: #37205E;
	margin: 0;
	padding: 0;
	display: block;
	white-space: normal;
}

.hero__form .fc-form__actions {
	margin-top: 5px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	width: var(--fc-form-w);
}

.hero__form .fc-form__actions .fc-submit,
.hero__form .fc-form__actions input[type="submit"].fc-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	height: 47px;
	padding: 12px 20px;
	background: #37205E;
	border: 0;
	border-radius: 2px;
	font-family: "Jost", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 145%;
	letter-spacing: -0.005em;
	color: #E2D6F6;
	cursor: pointer;
	white-space: nowrap;
	margin-top: 15px;
	animation: heroCtaPulse 4.6s ease-in-out infinite;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero__form .fc-form__actions .fc-submit:hover,
.hero__form .fc-form__actions input[type="submit"].fc-submit:hover {
	transform: translateY(-1px);
}

.hero__form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.2;
	max-width: 100%;
}

.hero__form .wpcf7-response-output {
	margin-top: 12px;
	font-size: 12px;
	line-height: 1.25;
}

/* =========================================================
   REVEAL ANIMATION
   - bez spanów
   - bez clip-path
   - bez box artefacts przy text-shadow
   ========================================================= */

.hero__title--reveal,
.hero__subtitle--reveal,
.hero__description--reveal,
.hero__highlight--reveal {
	opacity: 0;
	transform: translateY(22px);
	animation-name: heroTextIn;
	animation-duration: 0.9s;
	animation-fill-mode: forwards;
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__subtitle--reveal {
	animation-delay: 0.12s;
}

.hero__description--reveal {
	animation-delay: 0.22s;
}

.hero__highlight--reveal {
	animation-delay: 0.32s;
}

@keyframes heroTextIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* USP hover */
.hero__usp-icon,
.hero__usp-icon img {
	transition: transform 220ms ease, opacity 220ms ease;
}

.hero__usp-item:hover .hero__usp-icon,
.hero__usp-item:hover .hero__usp-icon img {
	transform: translateY(-4px);
}

/* CTA pulse */
@keyframes heroCtaPulse {
	0%,
	82%,
	100% {
		box-shadow: 0 0 0 0 rgba(55, 32, 94, 0);
	}

	90% {
		box-shadow: 0 0 0 8px rgba(55, 32, 94, 0.10);
	}
}

/* More bounce */
@keyframes heroMoreBounce {
	0%,
	82%,
	100% {
		transform: translateY(0);
	}

	90% {
		transform: translateY(6px);
	}
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {
	.hero {
		min-height: 100svh;
		padding-bottom: var(--hero-pad-bottom);
	}

	@supports not (height: 100svh) {
		.hero {
			min-height: 100vh;
		}
	}

	.hero__shape {
		position: absolute;
		left: 50%;
		bottom: -2px;
		width: calc(100vw + 24px);
		max-width: none;
		min-width: calc(100vw + 24px);
		height: 40px;
		transform: translateX(-50%) scaleY(1.02);
		display: block;
		object-fit: cover;
		object-position: center bottom;
		z-index: 1;
		pointer-events: none;
	}

	.hero__content {
		width: 100%;
		max-width: 100%;
		padding-left: var(--container-pad);
		padding-right: var(--container-pad);
		box-sizing: border-box;
	}

	.hero__grid {
		grid-template-columns: 1fr;
		row-gap: 0px;
		column-gap: 0;
		width: 100%;
		min-width: 0;
	}

	.hero__left,
	.hero__right {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.hero__left {
		padding-top: 0;
	}

	.hero__title {
		font-size: 32px;
		line-height: 120%;
		max-width: 100%;
		word-break: break-word;
	}

	.hero__subtitle {
		font-size: 20px;
		line-height: 130%;
		max-width: 100%;
	}

	.hero__description {
		font-size: 14px;
		line-height: 145%;
		max-width: 100%;
	}

	.hero__highlight {
		max-width: 100%;
		font-size: 24px;
	}

	.hero__usp {
		grid-template-columns: 1fr;
		gap: 16px;
		width: 100%;
	}

	.hero__usp-item {
		width: 100%;
		min-width: 0;
	}

	.hero__usp-icon {
		width: auto;
		height: auto;
		flex: 0 0 auto;
	}

	.hero__usp-icon img {
		width: auto;
		height: auto;
		max-width: 32px;
	}

	.hero__usp-text {
		min-width: 0;
		font-size: 16px;
		line-height: 120%;
	}

	.hero__form {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		height: auto;
		margin-top: var(--hero-form-top);
		padding: 24px;
		border-bottom-width: 8px;
		box-sizing: border-box;
	}

	.hero__form-title,
	.hero__form-desc,
	.hero__form-cf7,
	.hero__form .wpcf7-form,
	.hero__form .fc-form__fields,
	.hero__form .fc-form__consents,
	.hero__form .fc-form__actions {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.hero__form .fc-form__fields .fc-input,
	.hero__form .fc-form__consents .wpcf7-list-item label {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.hero__more {
		position: absolute;
		left: 50%;
		bottom: 16px;
		top: auto;
		transform: translateX(-50%);
		z-index: 5;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
		text-decoration: none;
	}

	.hero__more-label {
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		padding: 0;
		overflow: visible;
		clip: auto;
		white-space: nowrap;
		border: 0;
		font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
		font-weight: 700;
		font-size: 12px;
		line-height: 110%;
		letter-spacing: 0.25em;
		text-transform: uppercase;
		color: #ffffff;
		text-shadow: var(--hero-text-shadow);
	}
}

@media (max-width: 520px) {
	.hero__form,
	.hero__form .wpcf7-form,
	.hero__form .fc-form__fields,
	.hero__form .fc-form__consents,
	.hero__form .fc-form__actions,
	.hero__form .fc-form__fields .fc-input,
	.hero__form .fc-form__consents .wpcf7-list-item label {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}
}

/* wrapper nad hero */
.section.section--no-top {
	background: transparent;
	padding-top: 0;
	margin-top: 0;
}

.section.section--no-top::before {
	display: none;
	content: none;
}