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

h1, h2, h3, h4, h5, h6 {font-weight: var(--titleWeight); margin: 30px 0 20px;}
b, strong {font-weight: var(--titleWeight)}

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






/*
			N A V B A R
*/

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

.affix, .sub .navbar {
	background-color: hsl(0, 0%, 0%, .8);
	backdrop-filter: blur(3px);
}

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

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

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

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




/*
			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) {
	margin-left: var(--navMargin);
}

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

.navbar-nav > li > a {
	color: hsl(0, 0%, 100%);
	font-size: 0.875rem;
	font-weight: 700;
	display: 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: 0;
	width: 100%;
	height: 2px;
	will-change: transform;
	background-color: var(--primary);
	transition: all .3s ease-out;
	transform: translateX(-100%);
}

.navbar-nav a.nav-active::before,
.navbar-nav a:hover::before {
	transform: translateX(0);
}
/*
.navbar-nav:hover li:hover ~ li > a::before {
	transform: translateX(-100%);
}

.navbar-nav:hover li:hover > a::before {
	transform: none;
	visibility: visible;
	transition-delay: 0s;
} */


/* .navbar-nav a:focus::before,
.navbar-nav a:hover::before,
.navbar-nav .nav-active::before {
	transform: translateX(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;
	transition: all .3s 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: white;
	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 {
	position: relative;
	overflow: hidden;
}

.header-top {
	position: absolute;
	z-index: 20;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.header-top .container {
	height: 100%;

	display: flex;
	align-items: center;
	justify-content: flex-start;
}

header h1 {
	margin: 120px 0 0 0;
	color: white;
	font-size: var(--h2);
	text-shadow: 0 0 15px hsl(0, 0%, 0%, .3);
}





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

.home section h2:first-child {
	margin-top: 0;
}

h2 small,
h2 strong {
	display: block;
}

h2 small {
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 15px;
	color: var(--primary);
}

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

.photo-container {
	overflow: hidden;
}

.photo-container img {
	object-fit: cover;
	width: 100%;
    height: 100%;
}

#specjalizacja {
	padding: var(--sectionPadding) 0;
}

#specjalizacja .md\:w-6-12:last-child {position: relative;}

#specjalizacja .md\:w-6-12:last-child::after {
	content: '';
	display: block;
	background-color: hsl(359, 54%, 52%);
	mix-blend-mode: multiply;
	backdrop-filter: blur(1px);
	width: 220px;
	height: 220px;
	position: absolute;
	bottom: -40px;
	right: -55px;
	z-index: 20;
}

#specjalizacja .photo-container,
#praca .photo-container {
	height: 600px;
	padding-left: 30px;
}



#uslugi {
	background-color: var(--bgLight);
	padding: var(--sectionPadding) 0;
}

#uslugi .card-body {
	min-height: 350px;
}

.cards {
	box-shadow: 0 0 50px hsl(0, 0%, 0%, .1);
}

.card {
	flex-basis: 50%;
	display: flex;
	align-items: stretch;
	background-color: white;
	position: relative;
}

.reverse.card {
	flex-direction: row-reverse;
}

.card-image,
.card-body {
	flex-basis: 50%;
}

.card-image {
	flex-shrink: 0;
	overflow: hidden;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .3s ease-out;
}

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

.card-body {
	padding: 30px;
	color: hsl(180, 2%, 41%);
	font-size: 0.875rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.card-title {
	font-size: var(--h6);
	margin-top: 0;
	color: black;
}

.card-title--link {
	color: black;
	transition: color .3s;
}

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

.card:last-child::after {
	content: '';
	display: block;
	background-color: hsl(359, 54%, 52%);
	mix-blend-mode: multiply;
	backdrop-filter: blur(1px);
	width: 220px;
	height: 220px;
	position: absolute;
	bottom: -40px;
	right: -55px;
	z-index: 20;
}


#realizacje {
	background-color: var(--bgLight);
}

#realizacje .sm\:grid {
	gap: 0;
}

#realizacje a {
	overflow: hidden;
	background: black;
}

#realizacje a strong {
	display: block;
	transition: all .3s ease-out;
}

#realizacje a:hover strong {
	padding: 3px 40px;
}

#realizacje a img {
	filter: grayscale(1);
	opacity: .7;
	transition: all .3s ease-out;
}

#realizacje a:hover img {
	filter: grayscale(0);
	opacity: 1;
}



#praca {
	padding: var(--sectionPadding) 0;
}

#praca h2 small {color: black;}

#praca a {
	color: black;
	transition: color .2s;
}

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


#mapa iframe {
	width: 100%;
	height: 500px;
	display: block;
}





/*
			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: var(--sectionPadding) 0 40px;
	color: white;
}

footer h5 {
	margin-top: 0;
}

footer p a {
	text-decoration: none;
	color: var(--primary);
	transition: all .2s;
}

footer p a:hover {
	color: var(--primaryLight);
	text-decoration: underline;
}

footer hr {
	opacity: .1;
	background-color: #fff;
	margin: var(--sectionPadding) 0 40px;
}

footer .last, footer .last a {
	color: hsl(0, 0%, 100%, .5);
	text-decoration: none;
}

footer .last a {
	transition: color .2s;
}

footer .last a:hover {
	color: white;
}

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

footer a:hover {
	opacity: .8;
}




form {
	width: 100%;
	color: white;
}

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

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

label p {
	margin: 0;
}
[for="zgoda"] {
	font-size: 14px;
	line-height: 1.6;
}

input,select,textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .8rem 1rem;
	border: 2px solid hsl(0, 0%, 100%, .1);
	background-color: black;
	color: white;
}

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

textarea {
	height: 14.8rem;
}

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

.btn {
	font-weight: bold;
	padding: 1.2em 2em;
}






/*
			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: 1366px) {
	section {
		overflow: hidden;
	}
}



@media screen and (max-width: 1280px) {
	.cards .card {
		flex-basis: 100%;
		flex-direction: row;
	}

	.cards .card:nth-child(even) {
		flex-direction: row-reverse;
	}
}


@media screen and (max-width: 1199px) {
	:root {
		--navMargin: 30px
	}
	.navbar-logo {margin: 15px 0;}

	header h1 {
		font-size: var(--h4);
	}

	#realizacje a strong {
		font-size: 0.8125rem;
	}
}


@media screen and (max-width: 1022px) {
	.navbar-logo-image {height: 45px;}

	header h1 {margin-top: 60px;}

	.w-full {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.photo-container {
		height: auto !important;
		padding: 0 !important;
		margin-top: 30px;
	}

	footer .md\:w-4-12 {
		margin-bottom: var(--sectionPadding);
		text-align: center;
	}

	.footer-logo {display: none;}

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



@media screen and (max-width: 720px) {
	:root {
		--h2: 2rem;
		--h3: 1.8rem;
		--h4: 1.5rem;
		--h5: 1.3rem;
		--h6: 1rem;
	}

	.cards {
		box-shadow: none;
	}

	.cards .card {
		display: block;
		margin-bottom: 30px;
	}

	#uslugi .card-body {
		min-height: 10px;
	}

	.card:last-child::after {display: none;}
}




@media screen and (max-width: 590px) {
	.home header .swiper-slide img {
		height: 250px;
		width: 100%;
		object-fit: cover;
		object-position: right center;
	}

	#realizacje a strong {
		font-size: 1rem;
	}

	footer form .justify-between {
		display: block;
	}
}


@media screen and (max-width: 414px) {
	header h1 {
		font-size: var(--h5);
	}

	#specjalizacja .md\:w-6-12:last-child::after {
		width: 100px;
		height: 100px;
		bottom: -20px;
		right: 25px;
	}
}