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

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

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

.btn {
	padding: 1.2em 2.3em;
	font-family: var(--fontTitle);
	letter-spacing: 1px;
	font-weight: bold;
}

html {
	background-color: #fff;
}

body {
	background: var(--bgLight) url(/assets/img/bg1.svg) -30px -30px no-repeat;
	margin: 30px;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}



/*
			N A V B A R
*/

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

.affix {
	background-color: white;
	box-shadow: 0 0 30px hsl(0, 0%, 0%, .05);
}

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

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

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

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


.langs {
	position: relative;
}

.langs .dropdown {
	position: absolute;
	top: calc(100% + 15px);
	right: 0;
	width: 110px;
	padding: 10px 0;
	background-color: #fff;
	box-shadow: 0 10px 30px -5px hsl(0, 0%, 0%, .2);
}

.langs .dropdown a {
	color: var(--titleColor);
	text-decoration: none;
	padding: 10px 20px;
	transition: all .3s;
}

.langs .dropdown a:hover {
	background-color: var(--bgLight);
}

.langs > a {
	color: black;
	text-decoration: none;
}

.langs > a .drop {
	transform: rotate(90deg);
	font-family: monospace;
	font-weight: bold;
}

.langs > a.active-toggler .drop {
	transform: rotate(-90deg);
}

.langs img {
	border-radius: 50%;
	border: 3px solid hsl(0, 0%, 0%, .05);
}



/*
			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: 1.375rem;
	font-weight: 900;
	font-style: italic;
	font-family: var(--fontTitle);
	display: inline-flex;
	text-decoration: none;
	padding: 10px;
	transition: all .2s;
	outline: none;
	position: relative;
	overflow: hidden;
	transition: all .3s;
}

.affix .navbar-nav > li > a {font-size: 1rem;}
/*
.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: 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;
}







/*
			H E A D E R
*/

.movie {
	height: 90vh;
	mix-blend-mode: multiply !important;
}

.movie-mask {
	height: 100%;
	object-fit: contain;
}

.movie video {
	height: 99%;
	margin-left: 1px;
	object-fit: cover;
	object-position: center;
}

header h1 {
	margin: 0 0 15px;
	position: relative;
	padding-bottom: 30px;
}

header h1::after {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	width: 270px;
	height: 10px;
	background-color: var(--primary);
	border-radius: 4px;
}






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

main {
	position: relative;
	z-index: 20;
}

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

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

#firma {
	background: url(/assets/img/bg2.svg) right center no-repeat;
}

#firma .md\:w-4-12 img {
	max-width: 100%;
	width: 300px;
	aspect-ratio: 4/3.3;
	object-fit: contain;
	object-position: center;
}

#lepsze-jutro {
	background: url(/assets/img/redbg.png) center no-repeat;
	color: white;
}

#lepsze-jutro h2 {color: white;}

.counter {
	font-size: 5rem;
	font-family: var(--fontTitle);
	display: block;
	line-height: 1;
}

#lepsze-jutro small {
	font-family: var(--fontTitle);
	font-weight: bold;
	font-size: 1rem;
}

#co-zrobimy {
	background: url(/assets/img/bg3.svg) left center no-repeat;
}

.gallery.grid {
	gap: 0;
}

.gallery a {
	overflow: hidden;
}

.gallery img {
	display: block;
	width: 100%;
	transition: all var(--normalSpeed) var(--ease);
}

.gallery a:hover img {
	transform: scale(1.1);
}


/*
			F O O T E R
*/

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

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

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

footer a {
	color: white;
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

footer h2,
footer h4 {
	color: white;
}

footer iframe {
	width: 100%;
	height: 100%;
	display: block;
}

footer .half.pt-sp {
	padding-left: calc(100% - (var(--containerWidth) / 2) + 15px);
	padding-right: var(--sectionPadding);
}



/*
			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: 1360px) {
	.navbar-nav > li > a {font-size: 1rem;}
	footer .half.pt-sp {
		padding-left: 50px;
		padding-right: 50px;
	}
}

@media screen and (max-width: 1199px) {
	:root {
		--navMargin: 10px !important
	}
	#lepsze-jutro small {line-height: 1.2;}

	body {
		overflow-x: hidden;
	}
}


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

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

	header {
		width: 100%;
		height: auto;
		overflow: hidden;
		text-align: center;
	}

	header h1 {margin-top: 30px;}
	header p:last-of-type {
		margin-bottom: 60px;
	}

	header h1::after {
		width: 50%;
		left: 25%;
	}

	#firma {
		text-align: center;
	}

	#firma img {
		margin: 0 auto 30px;
	}

	#firma h4 {margin-top: 0;}

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

	.counters .sm\:w-6-12 {
		margin-top: 30px;
	}

	#co-zrobimy .flex, #co-zrobimy .md\:w-3-12.mb-30 {
		display: flex;
		flex-wrap: wrap;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	#co-zrobimy .flex img.mr-30 {
		margin-right: 0;
		margin-bottom: 30px;
	}

	#co-zrobimy .md\:w-4-12 img {
		margin: 30px auto;
	}

	footer .half {
		text-align: center;
	}

	footer iframe {
		width: 100%;
		height: 400px;
	}
}



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

	.counter {
		font-size: 4rem;
	}
}



@media screen and (max-width: 630px) {
	#lepsze-jutro {
		background-size: cover;
	}

	.counters .sm\:w-6-12 + .sm\:w-6-12 {
		margin-top: 60px;
	}

	.counter {
		margin-bottom: 15px;
	}

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

	.movie {height: 350px;}
}


@media screen and (max-width: 590px) {
	.langs.mr-30 {margin-right: 0;}

	.langs > a span.uppercase {display: none;}

	.langs .drop {margin-left: 5px;}

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

	.movie {height: 280px;}

}

@media screen and (max-width: 470px) {
	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);}

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

	.madeby {
		margin-top: 15px;
	}

	.movie {height: 60vw;}
}

@media screen and (max-width: 420px) {
	body {
		margin: 15px;
	}
	.langs .drop {display: none;}
}