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

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

.light {font-family: var(--fontLight);}
.regular {font-family: var(--font);}
.bold {font-family: var(--fontBold);}
.black {font-family: var(--fontTitle);}

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






/*
			N A V B A R
*/

.navbar {
	background-color: #fff;
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 999;
	transition: all .3s;
}

.affix {
	top: -140px;
}

.navbar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

.navbar-top {
	height: 140px;
	position: relative;
	z-index: 9999;
}

.navbar-bottom {
	height: 70px;
	background-color: var(--primary);
}

.navbar-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.navbar-logo--image {
	display: block;
	height: 70.4px;
	margin-right: 20px;
}

.navbar-logo--text {
	font-size: 1.5rem;
	color: black;
	display: block;
	line-height: 1.1;
}

.navbar-logo--text strong {
	text-transform: uppercase;
	font-family: var(--fontTitle);
}

.navbar-logo--text small {
	font-size: 1rem;
	font-family: var(--font);
	text-transform: none;
	opacity: 0.42;
}

.navbar a img {
	transition: opacity .3s;
}

.navbar a:hover img {
	opacity: .6;
}

.has-dropdown {
	position: relative;
}

.has-dropdown > a {
	background-color: hsl(37, 100%, 67%);
	text-decoration: none;
	color: black;
	padding: 1em 2em;
	transition: all .3s ease-out;
}

.has-dropdown > a:hover {
	background-color: hsl(37, 100%, 77%);
	box-shadow: 0 10px 20px -5px hsl(0, 0%, 0%, .2);
	transform: translateY(-2px);
}

.has-dropdown:hover > a:not(a:hover),
.has-dropdown > a:focus {
	background-color: hsl(37, 100%, 57%);
	box-shadow: 0 3px 10px -3px hsl(0, 0%, 0%, .3);
	transform: translateY(0);
}

.has-dropdown > a img {
	display: block;
	margin-right: 15px;
}

.has-dropdown > a small {
	font-family: var(--fontTitle);
	font-size: 0.75rem;
	display: block;
	max-width: 80px;
	line-height: 1.1;
}

.dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background-color: hsl(37, 100%, 57%);
	box-shadow: 0 10px 20px -3px hsl(0, 0%, 0%, .2);
}

.dropdown a {
	display: block;
	padding: 10px 15px;
	font-size: 0.75rem;
	text-decoration: none;
	text-transform: uppercase;
	font-family: var(--fontTitle);
	color: black;
	border-bottom: 1px solid hsl(0, 0%, 0%, .2);
	transition: all .15s ease-out;
}

.dropdown a:hover {
	transform: scale(1.05);
	background-color: hsl(37, 100%, 67%);
	box-shadow: 0 5px 2px -3px hsl(0, 0%, 0%, .2);
}

.dropdown a:last-child {border-bottom: 0;}


/*
			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: 0.875rem;
	font-family: var(--fontTitle);
	text-transform: uppercase;
	display: inline-flex;
	text-decoration: none;
	padding: 10px 0;
	transition: all .2s;
	outline: none;
}
/*
.nav-dropdown > a::after {
	filter: invert(1);
} */


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

.navbar-nav > li:first-child > a::before {
	left: 0;
	width: 100%;
}

.navbar-nav:hover a::before {
	transform: translateX(100%);
}

.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 > li > a:hover,
.navbar-nav .nav-active {
	color: black;
	opacity: .6;
}

.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: 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 {
	position: relative;
	overflow: hidden;
}

header::after {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 70%;
	z-index: 20;
	background: linear-gradient(transparent, white 90%);
}






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

.btn {
	font-family: var(--fontTitle);
	color: black;
	font-size: 1rem;
	text-align: center;
	justify-content: center;
	padding: 1.1em 2em;
	transition: all .3s ease;
	filter: none !important;
}

.btn:hover {
	background-color: var(--primaryLight);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -5px hsl(0, 0%, 0%, .2);
}

.btn.w-full {
	padding: 1.3em 2em;
	margin-top: calc(var(--sectionPadding) / 2);
}

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

#news h1 {
	font-size: var(--h2);
	margin-top: 0;
	margin-bottom: calc(var(--sectionPadding) / 2);
}

.card {
	width: 100%;
	cursor: pointer;
}

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

#news .card-image img {
	width: 100%;
	display: block;
	aspect-ratio: 16/10;
	object-fit: cover;
	object-position: center;
}

.card, .card-image img, .card-title--link {
	transition: all .3s;
}

.card-image {
	overflow: hidden;
	display: block;
}

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

.card-title {
	font-size: var(--h5);
	margin: 20px 0 15px;
}

.nowosci .card-title {
	margin-bottom: 0px;
}

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

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

.card small {
	color: var(--textLight);
}

.card-image.poster {
	height: 360px;
	overflow: hidden;
}


.card-image.poster img {
	object-fit: cover;
	object-position: center;
	height: 100%;
}

#boxes {
	padding: var(--sectionPadding) 0;
	background: black url(/assets/img/siedziba.jpg) center no-repeat;
	background-attachment: fixed;
}

.box {
	color: white;
	padding: 30px;
	border: 1px solid hsl(0, 0%, 100%, .25);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
}

.box:nth-child(2) {animation-delay: 150ms;}
.box:nth-child(3) {animation-delay: 300ms;}
.box:nth-child(4) {animation-delay: 450ms;}

.box .btn {margin-top: 20px;}

.box h5 {
	margin: 20px 0 15px;
}

.box h5 a {
	color: white;
	transition: color .2s;
}

.box h5 a:hover {
	color: var(--primary);
}

.box p {
	font-size: 0.875rem;
	line-height: 1.5;
}


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

#events h2 {
	margin-top: 0;
	margin-bottom: calc(var(--sectionPadding) / 2);
}

#events .flex.justify-center {
	gap: 30px;
}

#events .card {
	flex-basis: calc(25% - (30px - (30px / 4)));
}

.card-category {
	margin-top: 15px;
	display: block;
}

.card-category + .card-title {
	margin-top: 0;
}

.card-place {margin-top: 10px;}

.card-place img {margin-left: 2px; margin-right: 6px;}


#paralaksa {
	height: 538px;
	background: url(/assets/img/paralaksa.jpg) center no-repeat;
	background-attachment: fixed;
}






/*
			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: url(/assets/img/footer-bg.svg) center no-repeat;
	background-size: cover;
	color: white;
	padding: var(--sectionPadding) 0 40px;
}

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

footer h5 {
	margin-top: 0;
}

footer p:last-child {margin-bottom: 0;}

footer ul {
	margin: 0;
	padding: 0;
}

footer li {
	margin: 0 30px 0 0;
	padding: 0;
	list-style: none;
}

footer a {
	color: white;
	text-decoration: none;
	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: 1199px) {
	.social-media.px-50 {
		padding: 0 25px;
	}

	.bip.mr-50 {margin-right: 25px !important;}

	.navbar-logo--text {
		font-size: 1.2rem;
	}

	.navbar-logo--image {
		height: 55px;
		margin-right: 15px;
	}

	.has-dropdown > a {
		padding: 1em;
	}

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

	.navbar-nav ul {
		left: 25px;
	}

	.navbar-nav > li:first-child ul {
		left: 0;
	}

	.box {
		padding: 15px;
	}
}


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

	.affix {
		top: 0;
		box-shadow: 0 0 30px hsl(0, 0%, 0%, .1);
	}

	.navbar-top {
		transition: all .3s ease-out;
	}

	.affix .navbar-top {
		height: 70px;
	}

	.navbar-logo--text {
		font-size: 1rem;
	}

	.navbar-bottom {display: none;}

	.has-dropdown > a {
		padding: .45rem;
		border-radius: 50%;
	}

	.has-dropdown > a small {display: none;}

	.has-dropdown > a img {margin-right: 0;}

	.has-dropdown .dropdown {
		left: auto;
		right: 0;
		width: 170px;
	}

	.navbar .flex a img {
		max-height: 50px;
	}

	#events .card {
		flex-basis: calc(33% - (30px - (30px / 3)));
	}


	footer {
		text-align: center;
	}

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

	.mobile-nav li.flex {
		padding-top: 20px !important;
	}

	.mobile-nav li.flex a {
		border: 0;
	}
}



@media screen and (max-width: 620px) {
	#news {
		padding-top: 0;
	}
	.card {margin-bottom: 60px;}

	.box {
		margin-bottom: 30px;
	}

	#events .card {
		flex-basis: 100%;
	}

	#events .card-image img {
		width: auto;
		max-width: 100%;
	}

	#paralaksa {
		height: 350px;
	}

	.navbar-logo--text {
		font-size: 0.75rem;
		max-width: 150px;
	}

	.navbar-logo--text small {
		font-size: 0.6875rem;
	}

	.navbar-top {
		height: 80px;
	}

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

	header .swiper-slide img {
		display: block;
		width: 100%;
		height: 300px;
		object-fit: cover;
		object-position: center;
	}
}


@media screen and (max-width: 360px) {
	#events .card-image img {
		width: 100%;
		max-width: 400%;
	}

	.navbar-logo--image {
		height: 40px;
		margin-right: 10px;
	}
}

@media screen and (max-width: 320px) {
	.navbar-logo--text small {display: none;}

	.navbar-logo--text {
		font-size: 0.75rem;
		max-width: 100px;
	}
}



.mediumfonts {
	font-size: 1.1rem;
}

.bigfonts {
	font-size: 1.2rem;
}

.kontrastowa {
	font-size: 1.1rem;
	filter: invert(1);
}

.kontrastowa body {
	background-color: #fff;
}

.kontrastowa img {
	filter: invert(1);
}