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

body {
	text-align: justify;
}

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

h1, h2, h3, h4, h5, h6 {
	font-weight: var(--titleWeight);
	color: var(--primary);
	text-align: left;
}

.text-center h2,
.text-center h3,
.text-center h4,
.text-center h5,
.text-center h6 {
	text-align: center;
}

b, strong {font-weight: var(--boldWeight)}

.gilroy {
	font-family: var(--gilroy);
	font-weight: 300;
}

.gilroy-bold {
	font-family: var(--gilroy);
	font-weight: bold;
}

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

.btn {
	padding: 1em 2em;
}

.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-600 {animation-duration: 600ms;}
.speed-800 {animation-duration: 800ms;}
.speed-1000 {animation-duration: 1000ms;}
.speed-1200 {animation-duration: 1200ms;}
.speed-1400 {animation-duration: 1400ms;}
.speed-1600 {animation-duration: 1600ms;}

body {
	background-image: url(/assets/img/bg.jpg);
	background-repeat: no-repeat;
	background-position: 0 0;
}



/*
			N A V B A R
*/

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

.affix {
	background-image: linear-gradient(to right, white, transparent);
	backdrop-filter: blur(3px);
}

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

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


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

.navbar img:not(.navbar-logo img) {
	border-radius: 50%;
	overflow: hidden;
}

.navbar-logo-image {
	display: block;
	height: 150px;
	transition: all .2s;
	flex-shrink: 0;
	border-radius: 0;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	-ms-border-radius: 0;
	-o-border-radius: 0;
}

.navbar.affix img:not(.navbar-logo img) {
	background-color: hsl(0 0% 100% / .9);
	padding: 10px;
}


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


.mobile-menu-toggler {
	margin-left: 2rem;
	border-radius: 100vmax;
	background-color: var(--primary);
	display: flex;
	align-items: center;
	border: 0;
	padding: 1em 1.5em;
	color: white;
	text-transform: uppercase;
	font-size: 0.75rem;
	font-family: var(--gilroy);
	font-weight: bold;
	letter-spacing: 2px;
}

.mobile-menu-toggler .burger {
	width: 24px;
	height: 19px;
	margin-right: 0.8em;
	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 .burger div {
	display: block;
	height: 2px;
	width: 24px;
	background-color: white;
	transition: all var(--fastSpeed) var(--easeOutBack);
	transform-origin: right;
}


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

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

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

.desktop-menu {
	position: relative;
}

.desktop-nav {
	display: none;
	align-items: center;
	flex-wrap: nowrap;
	margin: 0;
	padding: 0;

	position: absolute;
	top: calc(100% + 15px);
	left: 5px;
	gap: 20px;
	padding: 10px 30px;
	transform: translateX(-100px);
}

.desktop-nav.show {
	display: flex;
	transform: translateX(0);
	animation: showNextDropdown .5s ease-out 1 forwards;
}



.desktop-nav li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.desktop-nav a {
	display: block;
	line-height: 1;
	text-decoration: none;
	font-weight: bold;
	text-transform: uppercase;
	color: var(--primary);
	white-space: nowrap;
	padding: 10px 15px;
	border-radius: 100vmax;
	background-color: #fff;
	box-shadow: 0 10px 20px -5px hsl(0 0% 0% / .1);
	transition: all .2s;
}

.desktop-nav a:hover {
	transform: scale(1.05);
	box-shadow: 0 5px 10px -5px hsl(0 0% 0% / .2);
}

.desktop-nav .active > a {
	background-color: var(--primary);
	color: white;
}

.desktop-nav li {
	position: relative;
}

.desktop-nav li ul {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	padding: 15px;
	margin: 0;
	background-color: #fff;
	border-radius: 25px;
	box-shadow: 0 10px -5px 30px hsl(0 0% 0% / .2);
}

.desktop-nav li ul li {
	margin-bottom: 10px;
	width: 100%;
}

.desktop-nav ul li a {
	width: 100%;
	display: block;
	line-height: 1;
}

.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-image {
	width: 986px;
	height: 895px;
	position: relative;
	overflow: hidden;
	mask-image: url(/assets/img/header-mask.svg);
	-webkit-mask-image: url(/assets/img/header-mask.svg);
	mask-size: 100% 100%;
	-webkit-mask-size: 100% 100%;
}

.header-image img {
	position: absolute;
	bottom: 0;
	left: 0;
	display: block;
}

.slogan {
	width: calc(100% * 6/12);
}

.slogan h1 {
	margin: 0;
	color: black;
}

.slogan span,
.slogan strong,
.slogan small {
	display: block;
}

.slogan small {
	margin-top: 2rem;
	color: var(--primary);
	display: flex;
	align-items: center;
}

.slogan small::before {
	content: '';
	display: block;
	width: 15px;
	height: 4px;
	margin-right: 0.5em;
	background-color: var(--primary);
}







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

#zaufaj img {
	box-shadow: 0 10px 30px hsl(0 0% 0% / .1);
}

.home section h2:first-of-type {
	margin-top: 0;
	margin-bottom: 2rem;
}

.home section h2 small {
	font-family: var(--font);
	color: var(--textLight);
	display: block;
	margin-bottom: 1rem;
}

.card {
	border-radius: .75rem;
	overflow: hidden;
	background-color: #fff;
	cursor: pointer;
	transition: all .3s;
}

.card:hover {
	box-shadow: 0 10px 30px -5px hsl(0 0% 0% / .1);
}

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

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

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

.card-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 30px;
}

.card-title {
	margin: 0 0 30px;
}
.card-title--link {color: var(--primary);}

.btn.alt {
	background-color: transparent;
	text-transform: uppercase;
	color: var(--textColor);
	font-size: 0.875rem;
	border: 1px solid var(--borderColor);
	border-radius: 100vmax;
	font-weight: bold;
	letter-spacing: 2px;
	transition: all .3s;
}

.btn.alt:hover {
	color: var(--primary);
	border-color: var(--primary);
}




form {
	width: 100%;
}

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

label {
	margin-top: 10px;
	margin-bottom: 5px;
	font-size: 1rem;
	font-weight: bold;
}

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;
	background-color: var(--bgLight);
	border: 2px solid var(--bgLight);
	transition: all .3s;
}

input:hover,
select:hover,
textarea:hover {
	border-color: hsl(0 0% 0% / .2);
}

input:focus,
select:focus,
textarea:focus {
	border-color: #000;
}

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

form .flex-nowrap {width: 100%;}

form .flex-nowrap label {flex-shrink: 1;}

[type="checkbox"] + label {
	font-weight: normal;
	font-size: 0.875rem;
	margin-top: 0;
}

label a {
	color: var(--secondary);
}

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

form .btn {
	align-items: center;
	border-radius: 100vmax;
	font-weight: bold;
	padding: 1.3em 2em;
}


/* #kontakt iframe {
	width: 50vw;
	height: 775px;
	flex-shrink: 0;
} */

#kontakt iframe {
	width: calc(100% - 60px);
	height: 500px;
}

#kontakt p a {
	color: var(--textColor);
	transition: color .2s;
}

#kontakt p a:hover {color: var(--secondary);}



/*
			F O O T E R
*/

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

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


footer {
	background-color: black;
	padding: 40px 0;
	color: hsl(228, 4%, 47%);
}


footer a {
	color: white;
	transition: opacity .2s;
}

footer a:hover {
	opacity: .8;
}




/*
			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: 1536px) {
	.header-image {
		width: 777px;
		height: 740px;
		mask-size: contain;
		mask-repeat: no-repeat;
	}

	.slogan h1 {
		font-size: clamp(1.2rem, var(--h1), 4.5vw);
	}
}


@media screen and (max-width: 1280px) {
	#kontakt .md\:w-4-12 {
		width: 45%;
		max-width: 45%;
		flex-basis: 45%;
	}
}


@media screen and (max-width: 1199px) {
	.header-image {
		width: 670px;
		height: 610px;
	}

	.slogan {margin-top: 22vh; width: calc(100% * 7/12);}

	.slogan small::before {display: none;}

	.card-title {font-size: var(--h5);}

	.btn.alt {
		letter-spacing: normal;
		padding-left: 1.5em;
		padding-right: 1.5em;
	}

	.slogan {
		font-size: .75rem;
	}
}



@media screen and (max-width: 1022px) {
	.navbar .container > .flex {
		justify-content: space-between;
	}

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

	.navbar-logo {margin: 15px 0;}

	.header-image {
		width: 55vw;
		height: 50vw;
	}

	.slogan {
		margin-top: 8vh;
		width: calc(100% * 7/12);
	}

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

	[class*="md:w"] + [class*="md:w"] {
		margin-top: 30px;
	}

	#uslugi .card-image img {
		height: 250px;
		object-fit: cover;
	}

	form button {margin-top: 30px;}

	footer img.mr-60 {display: none;}

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

	form .w-9-12 {
		width: 100%;
		max-width: 100%;
		flex-basis: 100%;

		padding: 0;
	}

	#kontakt iframe {
		width: 100%;
		height: 400px;
	}
}


@media screen and (max-width: 760px) {
	:root {
		--sectionPadding: 50px !important;
	}
	.slogan {
		margin-top: 15vh;
	}
}


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

	header {
		height: 600px;
	}

	.header-image {
		width: 95vw;
		height: 89vw;
	}

	.slogan {
		margin-top: 390px;
		width: 100%;
		text-align: center;
		justify-content: center;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.slogan span, .slogan strong, .slogan small {
		text-align: center;
	}

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


@media screen and (max-width: 420px) {
	.slogan {
		margin-top: 300px;
	}

	header {
		height: 530px;
	}
}


@media screen and (max-width: 400px) {
	.header-image {
		width: 100vw;
		height: 98vw;
	}

	.copy {text-align: center; font-size: .75rem;}

	.mobile-menu-toggler strong {display: none;}

	.mobile-menu-toggler .burger {margin-right: 0;}
}