/*
Theme Name:   Kadence Child - Social Factory
Theme URI:    https://socialfactory.pl/
Description:  Motyw potomny dla Kadence. Social Factory - Agencja Kreatywna.
Author:       Social Factory
Author URI:   https://socialfactory.pl/
Template:     kadence
Version:      1.0.0
Text Domain:  kadence-child-social-factory
*/

/* Twoje style wrzucaj poniżej */

.hero-button {
	position: absolute;
	bottom: 12px;
	right: 12px;
	z-index: 10;

	border-radius: 50% !important;
	line-height: 1.25 !important;
	font-weight: bold;

	--size: 120px;

	width: var(--size);
	height: var(--size);
	border: 0;
	border-radius: 50%;

	display: inline-grid;
	place-items: center;

	isolation: isolate;
	will-change: transform, filter;
	transform: translateZ(0);

	animation: btn-zoom 2.6s ease-in-out infinite;
}
@keyframes btn-zoom {
	0% {
		transform: scale(1);
	}
	45% {
		transform: scale(1.045);
	}
	100% {
		transform: scale(1);
	}
}

/* animujemy „promień” i „alfę” fal przez CSS zmienne */
@keyframes echo {
	0% {
		transform: scale(1);
		--r1: 0px;
		--a1: 0;
		--r2: 0px;
		--a2: 0;
	}
	20% {
		/* start pierwszej fali */
		--r1: 10px;
		--a1: 0.35;
		--r2: 0px;
		--a2: 0;
	}
	50% {
		/* pierwsza fala idzie dalej, druga rusza */
		--r1: 24px;
		--a1: 0.18;
		--r2: 12px;
		--a2: 0.22;
	}
	80% {
		/* obie rozchodzą się i zanikają */
		--r1: 40px;
		--a1: 0.06;
		--r2: 28px;
		--a2: 0.08;
	}
	100% {
		transform: scale(1.1);
		--r1: 46px;
		--a1: 0;
		--r2: 34px;
		--a2: 0;
	}
}

.hero-button::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	z-index: -1;

	/* ta warstwa jest niewidoczna jako „kółko” */
	background: transparent;

	/* a fale robimy drop-shadowem, sterowanym zmiennymi */
	filter: drop-shadow(0 0 var(--r1, 0px) rgba(255, 255, 255, var(--a1, 0))) drop-shadow(0 0 var(--r2, 0px) rgba(255, 255, 255, var(--a2, 0)));

	animation: echo 2.6s ease-out infinite;
}

figure.hero-video {
	position: relative;
	width: 100%;
	height: 100svh; /* lub inna wysokość */
	overflow: hidden;
	filter: grayscale(60%) brightness(60%);
	margin: 0 !important;
}
figure.hero-video > video {
	width: 100svw;
	height: 100%;
	object-fit: cover; /* background-cover */
	object-position: bottom; /* opcjonalnie */
	display: block; /* usuwa przerwy inline */
	padding: 0;
	border: 0;
	margin: 0 !important;
}

.hero-container {
	position: absolute !important;
	bottom: 50%;
	left: 0;
	right: 0;
	padding: 0;
	transform: translateY(50%);
	text-align: left;
	z-index: 5;
	max-width: 100svw;
}
.hero-container span {
	color: var(--global-palette1, #3182ce);
}
.hero-container__heading {
	font-size: clamp(3.25rem, 6.5vw, 7.25rem);
	margin-block: 0.25rem !important;
}
