@import url('./_config.css');
@import url('./cookies.css');

h1, h2, h3, h4, h5, h6 {font-weight: var(--titleWeight)}
b, strong {font-weight: var(--boldWeight)}

[x-cloak] {display: none !important;}

.container {
	max-width: 90%;
	width: var(--containerWidth);
}

.btn {
	padding: 1.6em 2em;
	border-radius: .5rem;
	color: black;
	font-weight: bold;
	font-size: .875rem;
	text-transform: uppercase;
}

p .btn {margin-top: 1rem;}

h1.mt-0,
h2.mt-0,
h3.mt-0,
h4.mt-0,
h5.mt-0 {
	margin-bottom: 2rem;
}



/*
			N A V B A R
*/

.navbar {
	background-image: linear-gradient(to bottom, black, transparent);
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 999;
	transition: all .3s;
}

.affix {
	background-color: hsl(0 0% 0% / .85);
	backdrop-filter: blur(3px);
}

.navbar-logo {
	margin: 10px 0;
	transition: all .3s;
}

.affix .navbar-logo {margin: 5px 0;}

.navbar-logo-image {
	display: block;
	height: 140px;
	transition: all .3s;
}

.affix .navbar-logo-image {height: 80px;}





/*
			N A V B A R   N A V
*/

.navbar-nav {
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: center;
}

.navbar-nav li {
	list-style: none;
	display: block;
	position: relative;
	margin: 0;
	padding: 0;
}

.navbar-nav > li:not(:first-child) {
	padding-left: var(--navMargin);
}

.navbar-nav a {
	will-change: auto;
}

.navbar-nav > li > a {
	color: hsl(0 0% 100%);
	font-size: 0.875rem;
	text-transform: uppercase;
	font-weight: 700;
	display: inline-flex;
	text-decoration: none;
	padding: 10px 0;
	transition: all .2s;
	outline: none;
	position: relative;
	overflow: hidden;
	letter-spacing: 2px;
}

.nav-dropdown > a::after {
	filter: invert(1);
}


.navbar-nav a::before {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: -100%;
	width: 100%;
	height: 2px;
	will-change: transform;
	background-color: var(--primary);
	transition: all .2s var(--ease);
}


.navbar-nav a:focus::before,
.navbar-nav a:hover::before,
.navbar-nav .nav-active::before {
	left: 0;
}

.navbar-nav .nav-active {
	color: var(--primary);
}

.navbar-nav ul {
	position: absolute;
	display: none;
	top: 100%;
	left: var(--navMargin);
	margin: 0;
	padding: 10px;
	min-width: 250px;
	background-color: white;
	box-shadow: 0 10px 30px hsla(0, 0%, 0%, .2);
}

.navbar-nav ul a {
	padding: 10px 15px;
	display: flex;
	font-size: 0.875rem;
	color: var(--textColor);
	justify-content: space-between;
	text-decoration: none;
	overflow: hidden;
	line-height: 1.3;
	transition: all .3s var(--ease);
}

.navbar-nav ul a::after {
	transform: rotate(-90deg);
}

.navbar-nav ul a::before {
	content: '>';
	font-family: monospace;
	font-weight: bold;
	font-size: 1rem;
	width: auto;
	height: auto;
	display: block;
	transform: translateX(0) !important;
	visibility: visible;
	background: none;
	position: absolute;
	top: 8px;
	left: 0;
	opacity: 0;
	color: var(--primary);
}

.navbar-nav ul a:hover::before {
	transform: translateX(10px) !important;
	opacity: 1;
}
.navbar-nav ul a:hover {
	padding-left: 25px;
	padding-right: 5px;
}

.navbar-nav ul .active > a,
.navbar-nav ul a.active {
	color: var(--primary);
}

.navbar-nav > li > .open,
.navbar-nav .nav-dropdown:hover > ul {
	display: block;
	animation: showDropdown .3s 1 forwards;
}

.navbar-nav .open .open,
.navbar-nav ul .nav-dropdown:hover > ul {
	display: block;
	animation: showNextDropdown .3s 1 forwards;
}

.navbar-nav ul ul {
	top: 0; left: 100%;
}


/* mobile menu */

.mobile-menu-toggler {
	width: 32px;
	height: 24px;
	padding: 0;
	border: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	position: relative;
	background: none;
	transition: all var(--fastSpeed) var(--easeOutBack);
	outline: none;
}

.mobile-menu-toggler div {
	display: block;
	height: 2px;
	width: 32px;
	background-color: var(--primary);
	transition: all var(--fastSpeed) var(--easeOutBack);
	transform-origin: right;
}

.mobile-menu-toggler div:last-child {
	width: 70%;
}

.mobile-menu-toggler.active-toggler div:first-of-type {
	transform: rotate(-45deg);
}

.mobile-menu-toggler.active-toggler div:last-child {
	transform: rotate(45deg);
	width: 100%;
}

.mobile-menu-toggler.active-toggler div:nth-of-type(2) {
	display: none;
}

.mobile-nav {
	transition: transform var(--fastSpeed) var(--easeOutQuart);
	transform: translateX(-100%);
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	max-width: 80vw;
	width: 300px;
	/* background-color: hsla(0, 0%, 0%, 0.8);
	backdrop-filter: blur(10px); */
	background-color: var(--primary);
	margin: 0;
	padding: 0;
	z-index: 99999;
	overflow-y: auto;
}

.mobile-nav.show {
	transform: translateX(0);
}

.mobile-nav ul,
.mobile-nav li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-nav ul {
	background-color: hsla(0, 0%, 0%, .3);
}

.mobile-nav a {
	display: block;
	font-size: 1rem;
	text-decoration: none;
	font-weight: 700;
	color: white;
	box-sizing: border-box;
	padding: 10px 15px;
	border-bottom: 1px solid hsla(0, 0%, 100%, .2);
}

.mobile-nav ul a {
	font-size: 0.875rem;
	font-weight: normal;
	padding-left: 30px;
}

.mobile-nav ul ul a {
	padding-left: 45px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
	color: var(--primary);
	background-color: #fff;
}







/*
			H E A D E R
*/

header .swiper-slide {
	overflow: hidden;
}

header .swiper-slide img {
	width: 100%;
	height: 100vh;
	object-fit: cover;
	object-position: center;
	mask-image: url(/assets/img/slidemask.svg);
	mask-size: 100% 100vh;
	-webkit-mask-size: 100% 100vh;
	-webkit-mask-image: url(/assets/img/slidemask.svg);
	filter: brightness(.98);
	-webkit-filter: brightness(.6);
}

.slogan {
	color: white;
	width: calc(100% * 7.7/12);
}

.scroll {
	position: absolute;
	bottom: 15px;
	left: 0;
}

.scroll img {
	display: block;
	animation: updown 2s linear infinite;
}

.scroll:hover img {animation-play-state: paused;}

@keyframes updown {
	0% 		{transform: translateY(0);}
	25% 	{transform: translateY(5px);}
	50% 	{transform: translateY(0);}
	75% 	{transform: translateY(-5px);}
	100% 	{transform: translateY(0);}
}




/*
			M A I N   S E C T I O N S
*/

.images {
	position: relative;
	width: 100%;
	aspect-ratio: 1/1;
}

.image-1 {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 20;
}

.image-2 {
	position: absolute;
	bottom: 0;
	right: 0;
}



.box .absolute {
	color: white;
	border-radius: .75rem;
	background-image: linear-gradient(to top, black, transparent);
}

.box strong {
	line-height: 1.3;
	padding-left: 1rem;
	padding-right: 1rem;
	margin-bottom: 2rem;
	font-size: 1.75rem;
}

.box .absolute .btn {
	margin-bottom: -25px;
}

.box img {
	transition: all var(--normalSpeed) var(--ease);
}

.box:hover img {
	transform: scale(1.1);
}


.card:hover {cursor: pointer;}

.card-image {
	overflow: hidden;
	border-radius: var(--borderRadius);
}

.card-image img {transition: transform var(--normalSpeed) var(--ease);}

.card:hover .card-image img {transform: scale(1.1);}

.card-title--link {
	color: var(--titleColor);
	transition: color .2s;
}

.card:hover .card-title--link {color: var(--primary);}


.card-body {font-size: .875rem;}

#przed-po .md\:row + .md\:row {margin-top: 30px;}

#przed-po .absolute {
	padding: 1em 3em 1em 4em;
	line-height: 1;
	font-size: 0.875rem;
	text-transform: uppercase;
	font-weight: bold;
	color: black;
	left: -1em;
}

#przed-po .absolute::before {
	content: '';
	display: block;
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(to right, var(--primary), hsl(33 90% 54% / .5));
	transform: skewX(15deg);
}


.gallery.grid {gap: 0; border-radius: var(--borderRadius); overflow: hidden;}

.gallery a {
	overflow: hidden;
}

.gallery img {
	display: block;
	width: 100%;
	transition: all var(--normalSpeed) var(--ease);
}

.gallery a:hover img {
	transform: scale(1.1);
}






/*
			F O O T E R
*/

.madeby {
	color:black;
	text-decoration: none;
	line-height: 1;
	display: inline-block;
}

.madeby small {
	float: left;
	margin: 4px 4px 0 0;
	font-size: 0.6875rem;
}

footer h5 {
	font-weight: normal;
	font-size: 1.33125rem;
}

footer .phone {
	margin-top: -50px;
}



/*
			K E Y F R A M E S
*/

@keyframes showDropdown {
	0% {opacity: 0; transform: translateY(-10px);}
	100% {opacity: 1; transform: translateY(0);}
}

@keyframes showNextDropdown {
	0% {opacity: 0; transform: translateX(-10px);}
	100% {opacity: 1; transform: translateX(0);}
}




/*
			M E D I A   Q U E R I E S
*/



@media screen and (max-width: 1200px) {
	.box strong {
		font-size: 1.3rem;
	}

	.image-2 {
		max-width: 80%;
	}

	.image-1 {
		max-width: 50%;
	}

}




@media screen and (max-width: 1022px) {

	:root {
		--sectionPadding: 80px !important
	}

	[class*="md:w"]:not([class*="sm:w"]) {
		padding-left: 0;
		padding-right: 0;
	}

	header .swiper-slide img {
		height: 500px;
		-webkit-mask-size: 100% 500px;
	}

	.slogan h1 {font-size: var(--h2);}

	.slogan .lead {
		font-size: 1.125rem;
	}

	.images {
		aspect-ratio: 3/2;
		width: 75%;
		margin: 0 auto;
	}

	#dlaczego .md\:w-6-12,
	#gwarancje .md\:w-6-12 {
		order: 2;
	}

	.box img.w-full {
		width: 100%;
		height: 200px;
		object-fit: cover;
	}

	.box, .card {margin-bottom: 50px;}

	.card-image img {
		height: 200px;
		object-fit: cover;
	}

	#przed-po .md\:w-6-12 + .md\:w-6-12 {margin-top: 30px;}

	footer .flex {
		position: relative;
		flex-direction: column;
		text-align: left;
		align-items: flex-start;
		padding: 100px 0 50px;
	}

	footer .phone {
		margin-top: 0;
		order: 3;
		position: absolute;
		right: 5%;
		bottom: -30px;
		width: 185px;
	}
}



@media screen and (max-width: 760px) {
	header .swiper-slide img {
		height: 400px;
		-webkit-mask-size: 100% 400px;
	}

	.slogan h1 {font-size: 2.5rem;}
	.slogan .lead {font-size: 1rem; line-height: 1.5;}

	.scroll {display: none;}

	.navbar-logo-image {
		height: 105px;
	}

	.images {
		aspect-ratio: 5/4;
		width: 100%;
		margin: 0 auto;
	}

	footer h5 {font-size: .75rem;}

	footer h2 {font-size: var(--h4);}
}


@media screen and (max-width: 599px) {

	header .swiper-slide img {
		height: 350px;
		-webkit-mask-size: 140% 350px;
		-webkit-mask-position: center;
	}

	.slogan {
		width: 94%;
	}

	.slogan h1 {
		font-size: 2.3rem;
		margin-top: 100px;
	}

	h1:not(.slogan h1) {font-size: var(--h2)}
	h2 {font-size: var(--h3)}
	h3 {font-size: var(--h4)}
	h4 {font-size: var(--h5)}
	h5 {font-size: var(--h6)}

	footer .phone {width: 90px;}

	footer .flex {
		padding: 40px 0 0px;
	}
}



@media screen and (max-width: 479px) {
	.slogan .lead {font-size: .875rem;}
}


@media screen and (max-width: 414px) {
	.slogan {
		width: 90%;
	}

	.slogan h1 {
		font-size: 2rem;
		margin-top: 90px;
	}

	.images {aspect-ratio: 1/1;}
}


@media screen and (max-width: 380px) {
	footer h5 {display: none;}

	footer h2 {
		font-size: var(--h5);
	}
}