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

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

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

.btn {
	padding: 1em 2em;
}




/*
			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%, 0%, .85);
	backdrop-filter: blur(3px);
}

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

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

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

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

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



/*
			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: 1.125rem;
	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: -101%;
	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: white
}

.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: 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 h1 {
	color: white;
	margin: 0;
	text-align: center;
	padding: 50px 0;
	line-height: 1.3;
	border-top: 14px solid var(--primary);
	border-bottom: 14px solid var(--primary);
}





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

.home h2 {
	text-align: center;
	position: relative;
	margin-top: 0;
	margin-bottom: 50px;
	padding-bottom: 50px;
}

.home h2::after {
	content: '';
	display: block;
	width: 223px;
	height: 7px;
	background-color: var(--primary);

	position: absolute;
	bottom: 0;
	left: calc(50% - 111px);
}

.box {
	height: 100%;
	padding: 50px;
	text-align: center;
	line-height: 1.3;
	font-size: 2rem;
	color: var(--textColor);
	box-shadow: 0 25px 50px -5px hsl(0, 0%, 0%, .15);
	transition: all .3s;
	position: relative;
	word-break: initial;
}

.box::after {
	content: '';
	display: block;
	position: absolute;
	bottom: -24px;
	left: calc(50% - 24px);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: url(/assets/img/more.svg) center no-repeat;
	transform-origin: center;
	transition: all 600ms;
}

.box:hover::after {
	transform: rotate(90deg);
}


.box:hover {
	transform: translateY(-2px);
	box-shadow: 0 30px 40px -10px hsl(0, 0%, 0%, .2);

}

.box span {
	border-top: 3px solid var(--primary);
	display: block;
	width: 100%;
	padding-top: 30px;
	margin-top: 30px;
}

.box img {
	max-height: 120px;
}

#news a {
	margin-bottom: 15px;
	margin-top: 15px;
	display: block;
	color: var(--textColor);
	font-size: var(--h6);
	padding: 15px;
	transition: all .3s;
}

#news a:hover {
	background-color: var(--bgLight);
}

#news a strong {
	display: block;
	font-size: var(--h5);
	line-height: 1.3;
	color: var(--primary);
}

#news .relative::after {
	content:'';
	display: block;
	width: 50px;
	height: 210px;
	background-color: var(--primary);
	position: absolute;
	left: -10px;
	bottom: -25px;
}


#dlaczego h5 {margin: 30px 0 0;}

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

#dlaczego p {
	font-size: 1.125rem;
	text-align: center;
}



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




/*
			F O O T E R
*/

footer, footer a {
	color: white;
}

footer small {
	font-size: 1.25rem;
	font-weight: bold;
	display: block;
	padding-bottom: 5px;
	margin-bottom: 5px;
	border-bottom: 6px solid var(--primary);
}

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

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

.text-xl {
	font-size: 2.375rem;
	line-height: 1.3;
}

.text-lg {
	font-size: 1.5rem;
	line-height: 1.3;
}


.social-media-flat, .partners-list {
	gap: 1rem;
	margin-top: 1rem;
}




/*
			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: 1660px) {
	.navbar-nav > li > a {font-size: 1rem;}
	.navbar-nav > li:not(:first-child) {padding-left: 15px;}
}


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



@media screen and (max-width: 1340px) {
	.navbar-nav > li > a {font-size: 0.875rem;}
}



@media screen and (max-width: 1280px) {
	header h1 {font-size: var(--h2);}
	h2 {font-size: var(--h3);}
	.navbar-logo.mr-35 {margin-right: 15px;}
	.affix .navbar-logo + .navbar-logo {margin-left: 0;}
	.box {font-size: 1.3rem;}

	.text-xl {font-size: 1.5rem;}
	.text-lg {font-size: 1.3rem;}
}



@media screen and (max-width: 1199px) {
	.navbar-logo-image {
		height: 30px !important;
	}

	.navbar-logo {margin-top: 20px; margin-bottom: 20px;}

	.navbar-logo.mr-35 {margin-right: 10px !important;}

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

	header h1 {
		font-size: var(--h3);
		padding: 30px 0;
		border-top-width: 5px;
		border-bottom-width: 5px;
	}

	.box {padding: 30px 30px 60px;}

	.text-xl {font-size: 1.25rem;}
	.text-lg {font-size: 1.1rem;}
}


@media screen and (max-width: 1020px) {
	[class*="md:w"]:not([class*="sm:w"]) {
		padding-left: 0;
		padding-right: 0;
	}

	#oferta .sm\:w-6-12 {margin-bottom: 30px;}

	#news img {
		width: 100%;
		max-height: 70vh;
		object-fit: cover;
		object-position: center top;
	}

	#news .relative::after {display: none;}

	footer .sm\:row {margin-top: 30px;}
}


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


@media screen and (max-width: 635px) {
	header h1 {font-size: var(--h4); padding: 30px 0; border-width: 3px;}

	.home header img {
		width: 100%;
		height: 300px;
		object-fit: cover;
	}

	h2 {font-size: var(--h4);}
	h3 {font-size: var(--h5);}
	h4 {font-size: var(--h6);}
	h5, #news a strong {font-size: var(--h6);}

	#news a {font-size: 1rem;}

	footer .sm\:w-6-12 {margin-top: 30px;}
	footer .sm\:row {margin-top: 0;}

	[class*="sm:w"] {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}



@media screen and (max-width: 400px) {
	.navbar-logo-image {
		height: 26px !important;
	}
}