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

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

h1 em, h2 em, h3 em, h4 em, h5 em, h6 em, .home section em {
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

html {
	scroll-padding-top: 50px;
}

body {
	font-variant-ligatures: none;
	width: 100%;
	overflow-x: hidden;
}

h1:first-of-type,
h2:first-of-type,
h3:first-of-type,
h4:first-of-type,
h5:first-of-type,
h6:first-of-type {
	margin-top: 0;
}

p:last-of-type {margin-bottom: 0;}

.delay-100 {animation-delay: 100ms;}
.delay-200 {animation-delay: 200ms;}
.delay-300 {animation-delay: 300ms;}
.delay-400 {animation-delay: 400ms;}
.delay-500 {animation-delay: 500ms;}
.delay-600 {animation-delay: 600ms;}

.speed-500 {animation-duration: 500ms;}
.speed-700 {animation-duration: 700ms;}
.speed-900 {animation-duration: 900ms;}
.speed-1100 {animation-duration: 1100ms;}
.speed-1300 {animation-duration: 1300ms;}
.speed-1500 {animation-duration: 1500ms;}

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

.btn {
	padding: 1.5em 2.5em;
	background: var(--gradient);
	border-radius: 100vmax;
	transition: all .3s;
	font-weight: bold;
}

.btn:hover {
	background: var(--gradient);
	filter: saturate(1.2) brightness(1.1);
	box-shadow: 0 5px 20px -5px hsl(0 0% 0% / .2);
	transform: translateY(-2px);
}




/*
			N A V B A R
*/

.navbar {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 999;
	transition: all .3s
}

.affix {
	background-color: hsl(0 0% 100%);
	box-shadow: 0 0 30px hsl(0 0% 0% / .1);
}

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

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

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

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




/*
			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% 0%);
	font-size: 1rem;
	display: inline-flex;
	text-decoration: none;
	padding: 10px 0;
	transition: all .2s;
	outline: none;
	position: relative;
	overflow: hidden;
}
/*
.nav-dropdown > a::after {
	filter: invert(1);
} */


.navbar-nav a::before {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: -103%;
	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;
}



.top-links {
	position: relative;
	top: -6px;
	color: white;
	padding: 5px;
}

.top-links a {
	text-decoration: none;
	color: white;
	font-size: .875rem;
	font-weight: bold;
}

.top-links::after {
	content:'';
	display: block;
	position: absolute;
	top: 0;
	left: -25px;
	bottom: 0;
	right: -50vw;
	background-color: black;
	border-radius: 0 0 0 50px;
	z-index: -1;
}

/* .top-links .social-icon {
	border-radius: 50%;
	background-color: #fff;
} */

.top-links .social-icon img {
	height: 25px;
}




/*
			H E A D E R
*/

header .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

header .swiper-slide img {
	max-width: 69vw;
	height: auto;
}

header .btn {
	margin-top: 2rem;
	font-size: 1.5rem;
}

header p {font-size: 1.5rem;}

header h1 {
	font-size: clamp(1.5rem, 7.5625rem, 8vw);
	line-height: 1;
}



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

.home em {font-style: normal;}

.decorated-image {
	position: relative;
	isolation: isolate;
}

.decorated-image::before {
	content: '';
	display: block;
	width: 214.4px;
	height: 214.4px;
	border-radius: 50%;
	background: url(/assets/img/before-circle.svg) center no-repeat;
	z-index: 100;
	bottom: 0;
	left: 0;
}

.decorated-image::after {
	content: '';
	display: block;
	width: 285.1px;
	height: 285.1px;
	border-radius: 50%;
	background: url(/assets/img/after-circle.svg) center no-repeat;
	z-index: -1;
	top: 0;
	right: 0;
}

.decorated-image::before,
.decorated-image::after {
	position: absolute;
}

#oferta {
	background: url(/assets/img/oferta-bg.svg) right top no-repeat;
}

#oferta .decorated-image::before {
	bottom: 100px;
}

.product {
	border-radius: 1rem;
	background-color: hsl(0 0% 100%);
	box-shadow: 0 10px 30px -5px hsl(14 87% 53% / .2);
	padding: 30px 30px 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: var(--titleColor);
	font-size: var(--h5);
	transition: all .3s;
}

.product:hover {
	box-shadow: 0 15px 30px -5px hsl(14 87% 43% / .3);
	transform: translateY(-2px);
}

.product img {
	width: 100%;
	aspect-ratio: 3/2;
	object-fit: contain;
	margin-bottom: 1rem;
}

.product strong {
	display: block;
	line-height: 1.2;
	padding-left: 15px;
	padding-right: 15px;
}

#kroki {
	counter-reset: kroki;
}

.krok {position: relative;}

.krok img {
	margin-bottom: 1rem;
}

.krok::after {
	counter-increment: kroki;
	content: 'krok ' counter(kroki);
	font-weight: bold;
	color: var(--textLight);
	font-size: 2.95rem;
	position: absolute;
	top: 20px;
	z-index: -1;
	right: 30px;
}


#zlecenie .bg-dark {
	border-radius: 60px 0;
	background-image: url(/assets/img/zlecenie-bg.png);
	background-position: left bottom;
	background-repeat: no-repeat;
	color: white;
}

#zlecenie h3 {color: white;}

form .col {margin-bottom: 15px;}
form label {margin: 0;}

#zlecenie label {
	font-size: .75rem;
	line-height: 1.5;
}

#zlecenie input,
#zlecenie textarea {
	background-color: transparent;
	color: white;
	border-color: hsl(0 0% 70%);
	transition: all .2s;
}

#zlecenie input:hover,
#zlecenie textarea:hover {
	border-color: hsl(0 0% 90%);
}

#zlecenie ::placeholder {
	opacity: 1;
	color: white;
	transition: opacity .2s;
}

#zlecenie :focus::placeholder {opacity: .2;}


.bg-dark {
	background-color: var(--bgDark);
}

#zaufali h4 {
	border-right: 1px solid var(--primary);
}

#zaufali img {
	max-width: 100%;
	max-height: 100px;
	object-fit: contain;
	object-position: center;
}


.card-image {
	overflow: hidden;
	display: block;
	width: 100%;
	border-radius: 60px 0;
}

.card-image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 4/3;
	transition: transform .5s var(--ease);
}

.card:hover {cursor: pointer;}

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

.card-body {
	padding-top: 1.5rem;
	text-align: center;
}

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

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


form {
	width: 100%;
}

fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}

label {
	margin-top: 10px;
	margin-bottom: 5px;
	font-size: 1.125rem;
}

label p {
	margin: 0;
}

label a {
	text-decoration: none;
	color: var(--primary);
}

label p,
label li {
	font-size: 0.875rem;
	line-height: 1.5;
}

label li {
	margin-bottom: 0.5em;
}

input,select,textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .8rem 1rem;
	border: 2px solid var(--borderColor);
}

[type="checkbox"],
[type="radio"] {
	width: auto;
	flex-shrink: 0;
}

textarea {
	height: 15rem;
}

.ok {
	border-color: var(--borderColor);
}

.error {
	border-color: red;
}

.error-msg {
	color: red;
	font-size: 1rem;
	margin-top: 5px;
}

.star {
	color: red;
	font-family: sans-serif;
}

#alert {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 0.5rem 1rem;
	color: white;
	font-weight: bold;
}

#alert.success {
	background-color: rgb(0, 133, 22);
}


#alert.danger {
	background-color: rgb(165, 0, 0);
}






/*
			F O O T E R
*/

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

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


footer {
	background-color: var(--secondary);
	color: white;
}

footer a {
	color: white;
	text-decoration: none;
	transition: color .2s;
}

footer a:hover {
	color: var(--primary);
}

footer h5 {color: white; margin-top: 0;}

footer input,
footer select,
footer textarea {
	background-color: transparent;
	border-radius: .25rem;
	color: white;
}

footer textarea {height: 11.4rem;}


p:first-of-type {margin-top: 0;}


/*
			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: 1199px) {
	:root {
		--navMargin: 25px !important
	}

	.navbar-nav > li > a {font-size: 0.875rem;}

	header h1 {
		font-size: clamp(1.1rem, 6rem, 5.5vw);
		line-height: 1;
	}

	header .lead {
		line-height: 1.3;
		font-size: 1.25rem;
	}

	header .btn {font-size: 1.25rem;}

	header .swiper-slide img {
		max-width: 70vw;
		height: 100vh;
		object-fit: cover;
	}

	h2 {font-size: var(--h3);}

	.decorated-image::before {
		width: 15vw;
		height: 15vw;
	}

	.decorated-image::after {
		width: 20vw;
		height: 20vw;
	}

	.grid {width: 100%;}

	.md\:grid-cols-4 {
		grid-template-columns: 1fr 1fr 1fr !important;
	}

	.krok::after {
		font-size: 2.35rem;
		top: 35px;
		right: 15px;
	}

	.krok h5 {font-size: var(--h6);}

	.krok p {
		font-size: 0.875rem;
		line-height: 1.4;
	}

	#zlecenie h3 {font-size: var(--h4);}

	#zlecenie form .col + .flex-nowrap {
		flex-direction: column;
		align-items: flex-end;
	}

	.slider .swiper-slide {
		display: flex;
		align-items: center;
		justify-content: center;
	}

}



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

	main {overflow: hidden;}

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

	.mobile-nav .social-icon {border: 0; margin-top: 30px;}

	.navbar {
		position: sticky;
	}

	header .absolute {
		position: relative;
		inset: auto;
		padding: 0 0 30px;
		text-align: center;
	}

	header .container {
		justify-content: center;
	}

	header .swiper-container {
		margin-top: -30vh;
		position: relative;
	}

	header .swiper-container::before {
		content: '';
		display: block;
		width: 100%;
		height: 30vh;
		position: absolute;
		top: 0;
		left: 0;
		z-index: 2;
		background-image: linear-gradient(to bottom, white, transparent);
	}

	header .swiper-slide img {
		max-width: 100%;
		height: auto;
		display: block;
	}

	.krok {
		padding-bottom: 30px;
		border-bottom: 1px solid hsl(0 0% 90%);
	}

	#zlecenie form {margin-top: 30px;}

	#zlecenie form textarea {height: 8.5rem;}

	#zaufali h4 {
		text-align: center;
		border-right: 0;
		padding-bottom: 2rem;
		margin-bottom: 15px;
		border-bottom: 1px solid var(--primary);
	}

	.card-image img {
		max-width: 100%;
		width: 40vw;
		margin: 0 auto;
	}

	.card-image {
		overflow: hidden;
		display: block;
		width: fit-content;
		border-radius: 30px 0;
		margin: 0 auto;
	}

	#blog .md\:w-4-12 + .md\:w-4-12 {margin-top: 60px;}

	footer .md\:w-3-12 {
		text-align: center;
	}

	p.flex {
		justify-content: center;
	}

	footer .md\:w-8-12 {
		margin-top: 60px;
	}

	footer .last {
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.copy {
		font-size: 0.875rem;
	}
}



@media screen and (max-width: 799px) {
	.slogan.w-6-12 {
		width: 80%;
		max-width: 80%;
		flex-basis: 80%;
	}

	header .container {
		padding-top: 30px;
	}

	.md\:grid-cols-4 {
		grid-template-columns: 1fr 1fr !important;
	}
}



@media screen and (max-width: 760px) {
	.decorated-image::before {
		width: 25vw;
		height: 25vw;
	}

	.decorated-image::after {
		width: 40vw;
		height: 40vw;
	}

	.decorated-image img {transform: translateX(10vw);}
}



@media screen and (max-width: 635px) {
	.card-image img {
		width: 60vw;
	}

	footer form .justify-between {
		flex-direction: column;
		align-items: flex-end;
		justify-content: flex-start;
	}
}



@media screen and (max-width: 599px) {
	:root {
		--sectionPadding: 60px !important;
	}

	.md\:grid-cols-4 {grid-template-columns: 1fr !important;}

	.product img {
		width: auto;
		max-width: 100%;
	}

	.product {padding: 15px 15px 30px;}

	#zlecenie .bg-dark {border-radius: 25px 0;}

	.slogan.w-6-12 {
		width: 100%;
		max-width: 100%;
		flex-basis: 100%;
	}

	header .btn {
		font-size: 1rem;
	}

	header .swiper-container {
		margin-top: -15vh;
		position: relative;
	}

	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)}

	header h1 {
		font-size: clamp(2.6rem, 6rem, 5.5vw);
	}

	.copy {
		text-align: center;
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	.copy span.mx-15 {display: none;}
}


@media screen and (max-width: 370px) {
	header h1 {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		font-size: clamp(2rem, 6rem, 5.5vw);
	}

	header .lead {font-size: 1rem;}

	header .swiper-container {
		margin-top: -5vh;
		position: relative;
	}

	h2 {font-size: var(--h4)}
	h3 {font-size: var(--h5)}
	h4 {font-size: var(--h6)}

	.card-image img {
		width: 100%;
	}
}