.hero-section {
    position: relative;
    height: 100svh;
    width: 100%;
    overflow: visible;
}

.hero-background {
    top: 0;
	top: env(safe-area-inset-top);
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    z-index: 1;
}

.page-template-front-page .site-header {
	position: absolute;
	height: 0;
}

/* Wrapper wideo + overlay – tylko tu clip-path działa */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
	clip-path: inset(40%);
	overflow: hidden;
	transition: 0.5s;
}

/* WIDEO – pełne, nieobcinane */
.hero-video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* OVERLAY – TYLKO TU JEST clip-path + gradient */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-gradient);
    z-index: 2;
    pointer-events: none;
}

/* TREŚĆ – zawsze nad wideo + overlay */
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 60px;
    text-align: center;
    pointer-events: auto;
    transition: color 0.4s ease;
}

.hero-background .container {
	margin-top: auto;
}

/* Hero Typography - Mobile */
.hero-title-line-1 {
	font-family: var(--font-family-primary);
	font-weight: 500;
	font-size: clamp(16px, calc(9.6px + 1vw), 85px);
	line-height: 110%;
	letter-spacing: -1%;
	text-align: center;
	margin-bottom: var(--spacing-sm);
	text-wrap: nowrap;
}

.hero-title-line-2 {
	font-family: var(--font-family-primary);
	font-weight: 700;
	font-size: clamp(16px, calc(9.6px + 1.5vw), 85px);
	line-height: 110%;
	letter-spacing: -1%;
	text-align: center;
	margin-bottom: var(--spacing-xl);
	display: block;
	text-wrap: nowrap;
}

.hero-cta {
	margin-top: var(--spacing-lg);
}

.cta-button.large {
	padding: 1rem 2rem; /* Mobile: smaller padding */
	font-size: 1rem; /* Mobile: smaller font */
	background: var(--white-primary);
	color: var(--primary-violet-dark);
	text-decoration: none;
	font-weight: 600;
	transition: background 0.35s ease, color 0.35s ease;
	white-space: nowrap;
	display: inline-block;
	position: relative;
	border-radius: 4px;
	border: none;
}

.cta-button.large::before {
	content: '';
	position: absolute;
	top: -0.5px;
	left: -0.5px;
	right: -0.5px;
	bottom: -1px;
	background: var(--white-primary);
	border-radius: 4px;
	z-index: -1;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.35s ease;
	mask: linear-gradient(90deg, black 0%, transparent 100%);
	-webkit-mask: linear-gradient(90deg, black 0%, transparent 100%);
}

.cta-button.large:active {
	background: var(--cta-button-hover-gradient);
	color: var(--white-primary);
}

.cta-button.large:active::before {
	opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
	.cta-button.large:hover {
		background: var(--cta-button-hover-gradient);
		color: var(--white-primary);
		cursor: pointer;
	}

	.cta-button.large:hover::before {
		opacity: 1;
	}
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
	.cta-button.large {
		padding: 1.125rem 2.25rem;
		font-size: 1.05rem;
	}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	.hero-cta {
		margin-top: var(--spacing-xl);
	}

	.cta-button.large {
		padding: 1.25rem 2.5rem;
		font-size: 1.1rem;
	}
	
	.hero-background .container {
		padding-top: 2rem;
	}
}


@media (min-width: 992px) {

	.cta-button.large {
		padding: 16px 56px;
		font-size: 20px;
		text-align: center;
	}

	.hero-title-line-1 {
		font-size: 42px;
	}

	.hero-title-line-2 {
		font-size: 42px;
	}
}

@media (min-width: 1200px) {
	.hero-title-line-1 {
		font-size: 54px;
	}

	.hero-title-line-2 {
		font-size: 54px;
	}
}

