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

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

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

.container-lg {
	padding-inline: clamp(1rem, 4rem, 3vw)
}

.btn {
	padding: 1.3em 2.3em;
	line-height: 1.1;
	justify-content: center;
	align-items: center;
	gap: 10px;
	color: var(--btnColor);
}




/*
			N A V B A R
*/

.navbar,
.navbar-logo,
.navbar-logo-image {
	transition: all 200ms;
}

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

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

.navbar-logo {
	margin: 33px 0;
}

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

.navbar-logo-image {
	display: block;
	height: 74px;
}

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

.navbar-right {
	gap: var(--navMargin);
}

.navbar .data {
	gap: 30px;
	border-left: 1px solid var(--borderColor);
	padding: 1rem 0 1rem var(--navMargin);
}

.data a {
	text-decoration: none;
	color: var(--textColor);
}

.langs:lang(pl) a:first-child {color: var(--primary);}
.langs:lang(en) a:last-child {color: var(--primary);}



/*
			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(--titleColor);
	font-size: 1rem;
	display: inline-flex;
	text-decoration: none;
	padding: 10px 0;
	transition: all .2s;
	outline: none;
	position: relative;
	overflow: hidden;
}

.navbar-nav a::before {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: -100%;
	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: black;
}

.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 > li:first-child > ul {
	left: 0;
}

.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);
	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, header .swiper, header .swiper-slide img.max-w-full {
	height: calc(100vh - 140px);
}

header .swiper-slide img.max-w-full {
	object-fit: cover;
}

header .swiper-slide {
	display: flex;
	justify-content: flex-end;
}

header .content {
	position: absolute;
	z-index: 20;
	left: 0;
	bottom: 0;
	background-color: white;
	padding: clamp(30px, 80px, 4vw);
	width: calc(100% * 4.5/12);
}

header .h1 {
	margin: 0 0 2.5rem;
}

header p + p {
	margin-top: 2.5rem;
}

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

.scroll {
	text-decoration: none;
	color: var(--textColor);
	font-size: .75rem;
	transition: color 200ms;
}

.scroll:hover {
	color: var(--primaryDark);
}

header::after {
	--size: clamp(100px, 250px, 20vw);

	content: '';
	display: block;
	width: var(--size);
	height: var(--size);
	background-image: url(/assets/img/squares.svg);
	background-repeat: no-repeat;
	background-size: contain;
	position: absolute;
	bottom: 0;
	right: 0;
	z-index: 20;

}


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

.decorated-image {
	position: relative;
}

.decorated-image::after {
	--size: clamp(150px, 250px, 20vw);
	content: '';
	width: var(--size);
	height: var(--size);
	display: block;
	position: absolute;
	bottom: -2rem;
	right: -2rem;
	z-index: 20;
	background-color: var(--primary);
	mix-blend-mode: darken;
}

.row-gap-60 {
	row-gap: 60px;
}

#dlaczego-my .row-gap-60 .flex.col h5,
#dlaczego-my .row-gap-60 .flex.col p {
	margin: 0;
}




/*
			F O O T E R
*/

.madeby {
	color: black;
	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: var(--primary);
}

footer hr {
	opacity: .2;
	background-color: black;
	margin: 0;
}


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

footer a:hover {
	opacity: .6;
	text-decoration: underline;
}




/*
			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 (max-height: 750px) and (min-width: 1024px) {
	header .swiper-slide img {
		width: 75vw;
	}

	.content .h1 {
		font-size: var(--h2);
	}

	header .content {
		padding: 40px;
		width: calc(100% * 4/12);
	}
}



@media (max-width: 1199px) {
	.w-full {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.navbar .data {
		padding-left: 0;
		border-left: 0;
	}

	header .content {
		width: 50%;
	}


	.decorated-image img {
		width: 100%;
		height: auto;
		aspect-ratio: 16/6;
		object-fit: cover;
	}

	.decorated-image {margin-bottom: 3rem;}

	footer {
		text-align: center;
	}

	footer .md\:w-5-12 {
		margin-bottom: 3rem;
	}

	footer .py-30 {
		flex-direction: column;
	}
}


@media (max-width: 920px) {
	.navbar-logo-image {
		height: 64px;
	}

	.navbar-right {gap: 2rem;}
	.navbar .data {gap: 1.15rem;}

	.navbar-right a span {display: none;}

	header {
		display: flex;
		flex-direction: column-reverse;
		flex-wrap: wrap;
		width: 100%;
		height: auto;
	}

	header .swiper-slide img {
		width: 100%;
		height: auto;
	}

	header, header .swiper, header .swiper-slide img.max-w-full {
		height: auto;
		width: 100%;
	}

	header .content {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		width: 100%;
		inset: auto
	}

	header::after {display: none;}

	.decorated-image img {
		aspect-ratio: 16/9;
	}
}


@media (max-width: 599px) {
	:root {
		--sectionPadding: 75px !important
	}
	.navbar-logo-image {
		height: 50px !important;
	}

	.data .langs {display: none;}

	.mobile-nav .langs {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 2rem 0;
		color: white;
	}

	.mobile-nav .langs span {margin: 0 .875rem !important}

	.mobile-nav .langs a {
		display: inline;
		border: 0;
		padding: 0;
	}

	.navbar-right {gap: 1rem;}
	.navbar .data {gap: .5rem;}

	header .content {
		padding: 1.5rem 1rem;
	}

	header .h1 {
		margin: 0 0 1rem;
	}

	header p + p {
		margin-top: 1rem;
	}
}