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

/* navbar */

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	width: 100%;
}

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

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

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

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

.affix {
	background-color: var(--secondary);
}

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


/* navbar-nav */

.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) {
	margin-left: 40px;
}

.navbar-nav > li > a {
	color: white;
	font-size: 1.25rem;
	font-weight: 400;
	display: inline-flex;
	text-decoration: none;
	padding: 10px 0;
	transition: all .2s;
}

.nav-dropdown > a::after {
	filter: invert(1);
}


.navbar-nav a::before {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary);
	transition: all .2s var(--easeOutBack);
}

.navbar-nav li:hover > a::before,
.navbar-nav a:hover::before,
.navbar-nav .nav-active::before {
	width: 100%;
}

.navbar-nav ul {
	position: absolute;
	display: none;
	top: 100%;
	left: 0;
	margin: 0;
	padding: 0;
	min-width: 250px;
	background-color: white;
	padding: 15px;
}

.navbar-nav ul a {
	padding: 10px 15px;
	display: flex;
	line-height: 1.2;
	color: var(--textColor);
	justify-content: space-between;
	text-decoration: none;
	transition: all .2s;
}

.navbar-nav ul a::after {
	transform: rotate(-90deg);
}

.navbar-nav ul a:hover,
.navbar-nav ul .active,
.navbar-nav ul li:hover>a {
	color: var(--primaryDark);
	padding: 10px 10px 10px 20px;
}

.navbar-nav ul a::before {
	/* height: 100%;
	z-index: -1;
	filter: brightness(93%);
	transition-timing-function: ease-out; */
	/* display: none; */
}

@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);}
}

.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 span {
	display: block;
	height: 2px;
	width: 100%;
	background-color: var(--primary);
	transition: all var(--fastSpeed) var(--easeOutBack);
	transform-origin: right;
}

.mobile-menu-toggler span:last-child {
	width: 70%;
}

.mobile-menu-toggler.active-toggler span:first-of-type {
	transform: rotate(-45deg);
}

.mobile-menu-toggler.active-toggler span:last-child {
	transform: rotate(45deg);
	width: 100%;
}

.mobile-menu-toggler.active-toggler span: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(--secondary);
	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 {
	background-color: var(--primary);
}

a {text-decoration: none;}

.btn {
	padding: 1rem 2rem;
	border-radius: 50px;
	color: var(--titleColor);
	transition: all .3s;
}

.btn img {
	margin-left: 1rem;
	top: 2px;
	position: relative;
}

main {
	width: 100%;
	overflow: hidden;
}

header {
	overflow: hidden;
	background: var(--secondary);
	height: 100vh;
	width: 100%;
}

.header-top {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 20;
}

.header-bg {
	background: var(--secondary) url(/assets/img/agnieszka-skopowska.png) left top no-repeat;
	background-size: contain;
	width: 100%;
	height: 100vh;
	position: relative;
	z-index: 1;
}

.slogan p {
	margin: 1.2rem 0 2rem;
	font-size: 1.25rem;
}



h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.1;
}

b, strong {
	font-weight: 700;
}

#cytat {
	padding: var(--sectionPadding) 0;
	background-color: var(--secondary);
	color: white;
}

blockquote {
	background: url(/assets/img/quote.svg) 0 0 no-repeat;
	background-size: 111px;
	padding: 1rem 0 0 5rem;
}

blockquote p {
	font-size: 1.25rem;
}

cite {
	text-align: right;
	color: var(--primary);
	font-style: normal;
	font-weight: bold;
	display: block;
	font-size: 1.25rem;
}


#kancelaria {
	padding: var(--sectionPadding) 0;
	background: url(/assets/img/kancelaria-bg.svg) 0 0 no-repeat;
	background-size: contain;
	width: 100%;
	overflow: hidden;
	font-size: 1.25rem;
}

#kancelaria h2 {margin-top: 0;}

#kancelaria img {
	display: block;
	position: relative;
	left: 0;
}

#kancelaria .md\:w-6-12::before {
	content: 'Adwokat';
	display: block;
	font-weight: bold;
	transform: rotate(-90deg);
	position: absolute;
	top: 12.5vw;
	left: -11.2vw;
	color: black;
	font-size: 5vw;
	opacity: .15;
}

#zakres-uslug {
	padding: var(--sectionPadding) 0;
	background: url(/assets/img/dots.svg) center 60px no-repeat;
	background-size: 33% auto;
}

#zakres-uslug .card {margin-bottom: 30px;}

.card-image {
	overflow: hidden;
	position: relative;
	width: 100%;
	display: block;
}


.card-image-photo {
	display: block;
	width: 100%;
	position: relative;
	z-index: 1;
	transition: transform var(--fastSpeed) var(--easeOutCubic);
}

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

.card-title {
	margin: 40px 0 30px;
	line-height: 1;
	font-size: 1.75rem;
}

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

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

.card-body p {
	font-size: 1.25rem;
}

.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-color: var(--secondary);
	padding: var(--sectionPadding) 0 calc(var(--sectionPadding) / 2);
	color: white;
	font-size: 1.25rem;
}

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

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

footer h4 {
	margin-top: 0;
}

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

footer address {
	font-style: normal;
}

footer a {
	color: white;
	transition: opacity .2s;
}

footer a:hover {
	opacity: .8;
}

footer .text-lg {
	color: var(--primary);
	font-size: 2.375rem;
}

footer .text-lg a {
	color: var(--primary);
	transition: all .2s;
}


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

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

	.slogan {margin-top: 50px;}
}


@media screen and (max-width: 1199px) {
	.navbar-nav > li:not(:first-child) {
		margin-left: 20px;
	}

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

	.slogan.md\:w-4-12 {
		width: 40%;
		max-width: 40%;
		flex-basis: 40%;
	}

	#kancelaria img {
		width: 100%;
	}


	.footer-logo {
		max-width: 80%;
		height: auto;
	}

	footer .text-lg {
		font-size: 1.375rem;
	}
}

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

	:root {
		--sectionPadding: 60px;
	}

	body {
		width: 100%;
		overflow-x: hidden;
	}

	.footer-logo {
		max-width: 240px;
		height: auto;
	}

	.slogan.md\:w-4-12 {
		width: 100%;
		max-width: 100%;
		flex-basis: 100%;
		margin-top: 0;
		margin-bottom: 30px;
	}

	.sub aside {
		display: none;
	}

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


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

	#kancelaria .md\:w-6-12::before {display: none;}
}

@media screen and (max-width: 480px) {
	blockquote {
		padding: 1.5rem 0 0 1.5rem;
	}

	.header-bg {
		background-position: center;
		background-size: cover;
	}

	.slogan h1 {font-size: var(--h3);}

	.slogan p {
		line-height: 1.5;
		font-size: 1.05rem;
	}
}


@media screen and (max-width: 480px) {
	h1 {font-size: var(--h3)}
	h2 {font-size: var(--h4)}
	h3 {font-size: var(--h5)}
	h4 {font-size: var(--h6)}
	h5 {font-size: var(--h6)}

	.thumbnail.right {
		margin: 0 0 30px 0;
		max-width: 666%;
		width: 100%;
	}
}


@media screen and (max-width: 375px) {
	.navbar-logo-image {
		height: 45px !important;
	}
	.navbar-logo {
		margin: 15px 0;
	}

	blockquote {
		padding: 0;
		margin: 0;
		background: none;
	}
}