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

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

body::before {
	content:'';
	display: block;
	width: 1px;
	height: 100vh;
	background-color: #F7F9FB;
	position: fixed;
	z-index: -2;
	top: 0;
	left: 10%;
	box-shadow: 20vw 0 0 #F7F9FB, 40vw 0 0 #F7F9FB, 60vw 0 0 #F7F9FB, 80vw 0 0 #F7F9FB;
}

body::after {
	content:'';
	display: block;
	width: 1px;
	height: 60px;
	background-color: #96D4EB;
	position: fixed;
	z-index: -1;
	top: 30vh;
	left: 10%;
	box-shadow: 20vw 10vh 0 #96D4EB, 40vw 20vh 0 #96D4EB, 60vw -5vh 0 #96D4EB, 80vw 25vh 0 #96D4EB;
}

header, main, footer {position: relative; z-index: 20;}

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

.btn {
	padding: 1.5em 2em;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 0.75rem;
}

.btn .more {
	font-family: monospace;
	font-weight: bold;
	display: inline-block;
	margin-left: 1rem;
}

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

.home h2:first-of-type,
.home h3:first-of-type,
.home h4:first-of-type,
.home h5:first-of-type,
.home h6:first-of-type {
	margin-top: 0;
}



/*
			N A V B A R
*/

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

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

.navbar-logo {
	margin: 25px 0;
	transition: all .2s;
}

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

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

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



/*
			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: var(--primary);
	font-size: 0.875rem;
	text-transform: uppercase;
	font-weight: 700;
	display: inline-flex;
	text-decoration: none;
	padding: 5px 0;
	transition: all .2s;
	outline: none;
	position: relative;
	overflow: hidden;
}

.nav-dropdown > a::after {
	filter: invert(93%) sepia(66%) saturate(5338%) hue-rotate(165deg) brightness(97%) contrast(90%);
}


.navbar-nav a::before {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: -103%;
	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: var(--primary);
	/* box-shadow: 0 10px 30px hsla(0, 0%, 0%, .2); */
}

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

.navbar-nav > li:last-child > ul,
.navbar-nav > li:nth-last-child(2) > ul {left: auto; right: 0;}

.navbar-nav ul a {
	padding: 10px 15px;
	display: flex;
	font-size: 0.875rem;
	color: white;
	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(--secondary);
}

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

.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 .swiper-slide {
	height: calc(100vh - 120px);
}

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

.h1 {line-height: 1.1; margin-bottom: 2rem;}





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

h2 small {font-weight: normal;}

.pl-col {padding-left: calc(100% * 1/12);}
.ml-col-negative {margin-left: calc(100% * 1/12 * -1);}

.bg-white {
	background-color: #fff;
}

#firma h2 {margin-bottom: 30px;}



#opakowania h6 {
	display: flex;
	align-items: center;
	gap: 1rem;
}

#opakowania h6:first-child::before,
#opakowania h6:last-of-type::after {
	content: '';
	display: block;
	width: 12px;
	height: 12px;
	background-color: var(--secondary);
	transform: rotate(45deg);
}



.how-many {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.how-many::before {
	content: '';
	display: block;
	width: 410px;
	height: 11.5px;
	background: url(/assets/img/zigzag.svg) center no-repeat;

	position: absolute;
	z-index: 60;
}

.counter {
	position: relative;
	z-index: 50;
	font-weight: bold;
	color: var(--secondary);
	font-size: 10rem;
	line-height: 1;
	text-shadow: 0 		20px 15px white,
				 0 		-20px 15px white,
				 2px 	20px 15px white,
				 -2px 	-20px 15px white;
}

.counter-before,
.counter-after,
.counter-before-far,
.counter-after-far {
	position: absolute;
	font-weight: bold;
	color: white;
	font-size: 10rem;
	z-index: -1;
	opacity: .5;
}

.counter-before-far,
.counter-after-far {
	opacity: .2;
}

.counter-before {transform: translateY(-30px); text-shadow: 0 -2px 0 hsl(196, 68%, 75%);}
.counter-after {transform: translateY(30px); text-shadow: 0 2px 0 hsl(196, 68%, 75%);}

.counter-before-far {transform: translateY(-60px); text-shadow: 0 -2px 0 hsl(196, 68%, 75%);}
.counter-after-far {transform: translateY(60px); text-shadow: 0 2px 0 hsl(196, 68%, 75%);}



#zaufali .grid {gap: 0;}

#zaufali .grid a {
	width: 100%;
	aspect-ratio: 1/1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid hsl(0 0% 96%);
}

#zaufali .grid a img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

#zaufali .grid a:not(:nth-child(n + 5)) {border-bottom: 0;}
#zaufali .grid a:not(:nth-child(4), :nth-child(8)) {border-right: 0;}


#branze .md\:w-7-12 {position: relative;}
#branze .md\:w-7-12::after {
	content:'';
	display: block;
	position: absolute;
	z-index: -1;
	background-color: var(--bgLight);
	top: 90px;
	left: 0;
	bottom: 0;
	right: -90px;
}

#branze .spozywcza .md\:w-7-12::after {background-color: var(--spozywcza)}
#branze .chemiczna .md\:w-7-12::after {background-color: var(--chemiczna)}
#branze .kosmetyczna .md\:w-7-12::after {background-color: var(--kosmetyczna)}
#branze .farmaceutyczna .md\:w-7-12::after {background-color: var(--farmaceutyczna)}


.branza h3 a {
	color: var(--titleColor);
}

.branza {cursor: pointer;}

.branza .ml-col-negative {
    transition: all .3s;
}

.branza:hover .ml-col-negative {
    margin-left: calc(80% * 1/12 * -1);
}


.isDisabled {
	cursor: not-allowed;
	color: currentColor;
	display: inline-block;
	pointer-events: none;
	text-decoration: none;
}



/*
			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 {
	position: relative;
}

footer::after {
	height: 100%;
	width: 50vw;
	background-color: var(--primary);
	content: '';
	display: block;
	position: absolute;
	right: 0;
	top: 0;
	z-index: -1;
}

footer p.flex a {
	text-decoration: none;
	color: var(--textColor);
	transition: color .3s;
}

footer ul {
	margin: 0;
	padding: 0;
	flex-shrink: 0;
}

footer li {
	margin: 0 0 1rem 0;
	padding: 0;
	list-style: none;
}

footer ul a {
	color: white;
	text-decoration: none;
	transition: color .2s;
	font-size: 1.375rem;
}

footer a:hover, footer p.flex a:hover {
	color: var(--secondary);
}

.footer-content {
	color: white;
	opacity: .5;
	font-size: 0.875rem;
	padding-left: 60px;
}

footer p:first-of-type, .lead {margin-top: 0;}

footer .socials a {
	width: 30px;
	aspect-ratio: 1/1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity .3s;
}

footer .socials a:hover {opacity: .6;}



/*
			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) {
	.branza h3 {font-size: 2rem;}

	.branza img {
		max-height: 70vh;
	}

	#zaufali .grid a img {
		max-width: 70%;
		max-height: 50%;
	}

	#zaufali h3 {font-size: var(--h4);}

	#dane-kontaktowe .md\:w-3-12 {
		width: 40%;
		max-width: 40%;
		flex-basis: 40%;
	}

	footer .copy {
		font-size: 0.6875rem;
	}
}



@media screen and (max-width: 1199px) {
	:root {
		--navMargin: 35px !important;
		--sectionPadding: 75px !important
	}

	header, main, footer {overflow: hidden;}

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

	.slogan .h1 {
		font-size: 3rem;
	}

	#firma img {
		max-height: 500px;
	}

	.branza .ml-col-negative {
		margin-left: calc(100% * 2/12 * -1);
		width: calc(100% * 6/12);
		max-width: calc(100% * 6/12);
		flex-basis: calc(100% * 6/12);
	}

	.branza:hover .ml-col-negative {
		margin-left: calc(80% * 2/12 * -1);
	}

	.branza h3 {
		font-size: 1.7rem;
	}

	#opakowania .flex.justify-between {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	#opakowania h6 {
		flex-direction: column;
	}

	#zaufali .md\:w-3-12,
	#zaufali .md\:w-9-12 {
		width: 100%;
		max-width: 100%;
		flex-basis: 100%;
		margin-bottom: 30px;
	}

	footer .md\:w-5-12 .flex {
		flex-direction: column;
	}

	.footer-content {padding-left: 0; margin-top: 1rem;}
}


@media screen and (max-width: 1022px) {
	.branza .ml-col-negative {margin-left: 0;}
	.branza:hover .ml-col-negative {margin-left: 10px;}

	#zaufali .grid a {aspect-ratio: 3/2;}

	footer::after {display: none;}

	footer ul {margin-top: 50px;}
	footer ul a {color: var(--textColor);}

	.footer-content {
		color: hsl(0 0% 55%);
		opacity: 1;
	}

	footer .container > .flex:last-of-type {
		align-items: center;
		text-align: center;
	}

	footer .bg-secondary {
		padding: 15px;
		margin: 30px 0;
	}

	footer .justify-end {justify-content: center; padding-bottom: 15px;}

	.madeby small {color: black}

	.madeby img {visibility: hidden;}
	.madeby {
		background: url(/assets/img/studiofabryka.svg) right center no-repeat;
		background-size: 92px auto;
	}

	#dane-kontaktowe .md\:w-3-12 {
		width: 100%;
		max-width: 100%;
		flex-basis: 100%;
	}

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


@media screen and (max-width: 960px) {
	.slogan .h1 {font-size: 2rem;}

	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: 760px) {
	#firma .w-7-12 {
		width: 100%;
		max-width: 100%;
		flex-basis: 100%;
	}

	#firma .pl-col {
		padding-left: 0;
	}

	#firma .btn {margin-top: 2rem;}

	#firma img {
		display: block;
		max-width: 100%;
	}

	#firma .ml-col-negative {margin-left: 0;}

	#firma .p-50 {
		padding: 0;
	}
}


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

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

	#firma .row {
		margin-left: 0;
		margin-right: 0;
	}
}


@media screen and (max-width: 430px) {
	#branze .md\:w-7-12 {
		width: calc(100% * 3/12);
		max-width: calc(100% * 3/12);
		flex-basis: calc(100% * 3/12);
	}

	.counter,
	.counter-before, .counter-after, .counter-before-far, .counter-after-far {
		font-size: 7rem;
	}

	#opakowania h6 {margin: 30px 0;}
}