/* ===============================
   1. Reset Styles
   =============================== */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	background: none;
	text-decoration: none;
	list-style: none;
	outline: none;
	border: 0;
	outline: 0;
	box-shadow: none;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

/* ===============================
   2. Root Variables
   =============================== */

:root {

	--sm: 576px;
	--md: 768px;
	--lg: 992px;
	--xl: 1200px;

	--black: #000;
	--halfblack: #00000060;
	--gray: #ccc;
	--darkgray: #555;
	--shadow: rgba(0, 0, 0, 0.2);
	--darkshadow: rgba(0, 0, 0, 0.4);
	--white: #fff;
	--halfwhite: rgba(255, 255, 255, 0.5);
	--transwhite: rgba(255, 255, 255, 0.75);
	--light: #f5f5f4;
	--lightgray: #f1f1f1;
	--lime: #CAEB17;
	--green: #A6C011;
	--darkgreen: #657126;
	--brown: #80664c;
	--header: 70px;
	--radius: 6px;
	--radius-full: 2000px;
	--gap: 1rem;
	--site-padding: 1rem;
	--sidebar-width: 300px;

	--limit-narrow: 760px;
	--limit-middle: 900px;
	--limit-wide: 1080px;


	--font-size: 16px;
	--bold: 700;
	--semibold: 600;
	--regular: 400;
	--thin: 300;

	--font-h: 'Playfair Display', serif;
	--font-b: 'Work Sans', sans-serif;

	--font-h: 'Nunito', serif;
	--font-b: 'Noto', sans-serif;

	--font-h: 'Nunito', serif;
	--font-b: 'Work Sans', sans-serif;
}

@media (min-width: 576px) {
	:root {
		--site-padding: 2rem;
	}
}

@media (min-width: 768px) {
	:root {
		--header: 100px;
		--font-size: 18px;
	}
}

@media (min-width: 992px) {
	:root {
		--site-padding: 3rem;
	}
}

@media (min-width: 1200px) {
	:root {
		--gap: 1.5rem;
		--site-padding: 4rem;
		--sidebar-width: 380px;
	}
}

@media (min-width: 1600px) {
	:root {
		--gap: 2rem;
	}
}


/* ===============================
   3. Base Styles
   =============================== */

html {
	font-size: var(--font-size);
}

body {
	font-family: var(--font-b);
	font-weight: var(--regular);
	font-style: normal;
	font-size: 1rem;
	line-height: 1.8;
	background-color: var(--white);
	color: var(--black);
}

body.no-scroll {
	overflow: hidden;
}

p {
	margin-bottom: 1.5rem;
}

[class^="col-"]>p:last-child {
	margin-bottom: 0;
}

strong {
	font-weight: var(--semibold);
}

a:hover {
	color: inherit;
}

p a,
.list a {
	padding-bottom: .5rem;
	background-size: 100% .5rem;
	background-position: 100% 100%;
	background-repeat: no-repeat;
	transition: all 0.2s ease;
	font-weight: var(--semibold);
	background-image: linear-gradient(var(--lime), var(--lime));
}

p a:hover,
.list a:hover {
	background-size: 100% .25rem;
}



.list,
.wp-block-list {
	margin-bottom: 1.5rem;
	line-height: 1.3;
}

.list li,
.wp-block-list li {
	margin-left: 1.5rem;
	margin-bottom: .5rem;
	text-indent: -.75rem;
}

.list li::before,
.wp-block-list li::before {
	font-weight: var(--bold);
	line-height: 0;
	font-size: 1.75rem;
	padding-right: .75rem;
	display: inline-block;
	content: "\FFED";
	position: relative;
	top: 0.3rem;
	color: var(--secondary);
	z-index: inherit
}



.list-red li::before {
	color: var(--red);
}

.list-blue li::before {
	color: var(--blue);
}

.list-yellow li::before {
	color: var(--yellow);
}

.list-aqua li::before {
	color: var(--aqua);
}


h1,
.h1 {
	display: block;
	font-family: var(--font-h);
	font-style: normal;
	font-weight: var(--bold);
	font-size: 2.5rem;
	text-transform: none;
	line-height: 1.1;
	margin-bottom: 2.5rem;
	color: var(--brown);
	letter-spacing: -0.03em;
}

.dark h1,
.dark .h1 {
	color: var(--white);
}


h2,
.h2 {
	display: block;
	font-size: 1.75rem;
	font-weight: var(--semibold);
	line-height: 1.1;
	text-transform: none;
	margin-bottom: 1.5rem;
	color: var(--primary-dark);
}

p+h2,
p+.h2,
ul+h2,
ul+.h2 {
	margin-top: 2.5rem;
}

h3,
.h3 {
	display: block;
	font-size: 1.5rem;
	font-weight: var(--semibold);
	line-height: 1.1;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
}

h4,
.h4 {
	display: block;
	font-size: 1.111111rem;
	font-weight: var(--regular);
	line-height: 1.1;
	margin-bottom: 1.4rem;
	letter-spacing: -px;
}

@media (min-width: 576px) {

	h1,
	.h1 {
		font-size: 3.5rem;
		margin-bottom: 4rem;
	}



	h2,
	.h2 {
		font-size: 2.4rem;
		margin-bottom: 2rem;
	}

	h3,
	.h3 {
		font-size: 1.6rem;
		margin-bottom: 1.5rem;
	}


}


@media (max-width: 991px) {
	.excerpt p {
		line-height: 1.4;
	}
}

@media (min-width: 992px) {



	p.copy,
	.copy p {
		font-size: 1.2rem;
		line-height: 1.6;
		margin-bottom: 1.75rem;
	}

	.copy .list,
	.copy .wp-block-list {
		font-size: 1.16666666rem;
		margin-bottom: 1.75;
	}

	.copy .block {
		margin-bottom: 2.5rem;
	}
}

/* ===============================
  4. Layout Styles
  =============================== */


















.mask {
	position: absolute;
	content: '';
	bottom: -2px;
	left: 0;
	display: block;
	width: 100%;
	height: auto;
	z-index: 2;
	color: var(--light)
}

.mask.green {

	color: var(--lime);
}

.mask svg {
	width: 100%;
	height: auto;
	display: block;
}

/* grid */

.container {
	/* container for content */
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--site-padding);
	z-index: 3;
}

.container.full {
	padding: 0;
}



.container.has-sidebar {
	display: flex;
	flex-wrap: nowrap;
}

.row {
	/* row for columns */
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	/* negative margin for gutters */
}

[class^="col-"] {
	flex: 1 1 100%;
	padding: 0;
	margin-bottom: 1.5rem;
}

@media (min-width: 576px) {

	.row {
		margin: 0 -(var(--gap));
		/* negative margin for gutters */
	}

	[class^="col-"] {
		padding: 0 var(--gap);
		margin-bottom: var(--gap);
	}

	.col-sm-1 {
		flex: 0 0 8.333%;
		max-width: 8.333%;
	}

	.col-sm-2 {
		flex: 0 0 16.666%;
		max-width: 16.666%;
	}

	.col-sm-3 {
		flex: 0 0 25%;
		max-width: 25%;
	}

	.col-sm-4 {
		flex: 0 0 33.333%;
		max-width: 33.333%;
	}

	.col-sm-5 {
		flex: 0 0 41.666%;
		max-width: 41.666%;
	}

	.col-sm-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}

	.col-sm-7 {
		flex: 0 0 58.333%;
		max-width: 58.333%;
	}

	.col-sm-8 {
		flex: 0 0 66.666%;
		max-width: 66.666%;
	}

	.col-sm-9 {
		flex: 0 0 75%;
		max-width: 75%;
	}

	.col-sm-10 {
		flex: 0 0 83.333%;
		max-width: 83.333%;
	}

	.col-sm-11 {
		flex: 0 0 91.666%;
		max-width: 91.666%;
	}

	.col-sm-12 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

@media (min-width: 768px) {

	.col-md-1 {
		flex: 0 0 8.333%;
		max-width: 8.333%;
	}

	.col-md-2 {
		flex: 0 0 16.666%;
		max-width: 16.666%;
	}

	.col-md-3 {
		flex: 0 0 25%;
		max-width: 25%;
	}

	.col-md-4 {
		flex: 0 0 33.333%;
		max-width: 33.333%;
	}

	.col-md-5 {
		flex: 0 0 41.666%;
		max-width: 41.666%;
	}

	.col-md-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}

	.col-md-7 {
		flex: 0 0 58.333%;
		max-width: 58.333%;
	}

	.col-md-8 {
		flex: 0 0 66.666%;
		max-width: 66.666%;
	}

	.col-md-9 {
		flex: 0 0 75%;
		max-width: 75%;
	}

	.col-md-10 {
		flex: 0 0 83.333%;
		max-width: 83.333%;
	}

	.col-md-11 {
		flex: 0 0 91.666%;
		max-width: 91.666%;
	}

	.col-md-12 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

@media (min-width: 992px) {

	.col-lg-1 {
		flex: 0 0 8.333%;
		max-width: 8.333%;
	}

	.col-lg-2 {
		flex: 0 0 16.666%;
		max-width: 16.666%;
	}

	.col-lg-3 {
		flex: 0 0 25%;
		max-width: 25%;
	}

	.col-lg-4 {
		flex: 0 0 33.333%;
		max-width: 33.333%;
	}

	.col-lg-5 {
		flex: 0 0 41.666%;
		max-width: 41.666%;
	}

	.col-lg-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}

	.col-lg-7 {
		flex: 0 0 58.333%;
		max-width: 58.333%;
	}

	.col-lg-8 {
		flex: 0 0 66.666%;
		max-width: 66.666%;
	}

	.col-lg-9 {
		flex: 0 0 75%;
		max-width: 75%;
	}

	.col-lg-10 {
		flex: 0 0 83.333%;
		max-width: 83.333%;
	}

	.col-lg-11 {
		flex: 0 0 91.666%;
		max-width: 91.666%;
	}

	.col-lg-12 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

@media (min-width: 1200px) {

	.col-xl-1 {
		flex: 0 0 8.333%;
		max-width: 8.333%;
	}

	.col-xl-2 {
		flex: 0 0 16.666%;
		max-width: 16.666%;
	}

	.col-xl-3 {
		flex: 0 0 25%;
		max-width: 25%;
	}

	.col-xl-4 {
		flex: 0 0 33.333%;
		max-width: 33.333%;
	}

	.col-xl-5 {
		flex: 0 0 41.666%;
		max-width: 41.666%;
	}

	.col-xl-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}

	.col-xl-7 {
		flex: 0 0 58.333%;
		max-width: 58.333%;
	}

	.col-xl-8 {
		flex: 0 0 66.666%;
		max-width: 66.666%;
	}

	.col-xl-9 {
		flex: 0 0 75%;
		max-width: 75%;
	}

	.col-xl-10 {
		flex: 0 0 83.333%;
		max-width: 83.333%;
	}

	.col-xl-11 {
		flex: 0 0 91.666%;
		max-width: 91.666%;
	}

	.col-xl-12 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}


@media screen and (max-width: 575px) {
	.nomargin {
		width: calc(100% + 2*var(--site-padding));
		margin-left: calc(-1 * var(--site-padding));
		margin-right: calc(-1 * var(--site-padding));
	}
}


/* full-width container GRID
multiple column with eqal gaps */

.container.full .row {
	margin: 0 .5rem;
	/* half of the real gap comes from the row-margins */
}

.container.full .row [class^="col-"] {
	padding: .5rem;
	/* half of the real gap comes from the column-paddings */
}


@media screen and (min-width: 576px) {

	.container.full .row [class^="col-"] {
		padding-bottom: 2.5rem;
		/* half of the real gap comes from the column-paddings */
	}

}





/* Header Styles */
header {
	background-color: var(--white);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	transition: top 0.3s ease-in-out, height 0.1s ease-in-out;
	box-shadow: 0 1px 10px var(--shadow);
	z-index: 10;
}

body.trans header {
	/*transparent header for pages listed in functions.php - p.8 */
	background-color: var(--shadow);
	box-shadow: none;
}

.header-hidden header {
	top: -100px;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: var(--header);
	padding: 0 1rem;
}

/* Logo */
.logo {
	display: flex;
	align-items: center;
	z-index: 20;
}

.logo img {
	height: 2rem;
	width: auto;
	transition: filter 0.2s ease-in-out;
}

body:not(.trans) .logo:hover img {
	filter: brightness(0)
}

body.trans .logo img {
	filter: grayscale(100%) contrast(0%) brightness(200%);
}

body.trans .menu-toggle.open~.logo img {
	filter: none;
}

.menu-toggle {
	background-color: transparent;
	border: none;
	display: block;
	height: 26px;
	width: 26px;
	cursor: pointer;
	position: relative;
	z-index: 20;
}

.menu-toggle span {
	/*bars*/
	width: 26px;
	height: 2px;
	display: block;
	position: absolute;
	transition: all .2s ease-in-out;
	background-color: var(--black);
}

body.trans .menu-toggle:not(.open) span {
	background-color: var(--white);
}

.menu-toggle span:nth-child(1) {
	width: 26px;
	top: 3px;
	right: 0;
}

.menu-toggle span:nth-child(2) {
	width: 26px;
	top: 12px;
	right: 0;
}

.menu-toggle span:nth-child(3) {
	bottom: 3px;
}

.menu-toggle.open span:nth-child(1) {
	transform-origin: cente r center;
	transform: translateY(9px) rotate(-45deg);
	width: 26px;
}

.menu-toggle.open span:nth-child(2) {
	width: 0;
	opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
	transform-origin: center;
	transform: translateY(-9px) rotate(45deg);
}



/* Navigation Menu - Mobile */
.main-nav {
	position: fixed;
	top: 0;
	right: -100%;
	padding: var(--header) 0 0 0;
	width: 100%;
	height: 100%;
	background-color: var(--white);
	transition: transform 0.3s ease-in-out;
	display: flex;
	flex-direction: column;
	z-index: 10;
}

.main-nav.open {
	transform: translateX(-100%);
}

.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex-grow: 1;
}

.nav-list li {
	border-top: 1px solid var(--black);
	padding: 0;
}

.nav-list>li:last-child {
	border-bottom: 1px solid var(--black);
}

.nav-list li a {
	text-decoration: none;
	color: var(--black);
	font-size: 1.2rem;
	line-height: 1;
	font-weight: var(--semibold);
	display: block;
	padding: 1rem;
	transition: color 0.1s ease-in-out, background-color 0.1s ease-in-out;
}

.nav-list>li>a {
	background-color: var(--light);
}

.nav-list li a:hover,
.nav-list li a:active {
	background-color: var(--lime);
	color: var(--black);
}




/* Dropdown Menu - mobile */
.dropdown {
	position: relative;
}

.dropdown.open>a {
	background-color: var(--black);
	color: var(--white);
}

/* Dropdown arrow - down */
.dropdown>a::after,
.more::after {
	display: block;
	position: absolute;
	content: '';
	width: .4rem;
	height: .4rem;
	top: 1.2rem;
	right: 1.4rem;
	border-color: inherit;
	border-width: 2px;
	border-style: none solid solid none;
	transform: rotate(45deg) scaleY(1);
	transition: all .2s ease-in-out;
}

.dropdown.open>a {
	background-color: var(--black);
	color: var(--white);
}

/* Dropdown arrow rotate for active element*/
.dropdown.open>a::after {
	transform: translateY(3px) scaleY(-1) rotate(45deg);
	border-color: var(--white)
}



.dropdown-menu {
	display: flex;
	opacity: 0;
	position: absolute;
	top: calc(100% - 4px);
	/* Poniżej elementu dropdown */
	left: 0;
	width: 100%;
	background-color: var(--white);
	z-index: 15;
	flex-direction: column;
	gap: 0;
	padding: 0;
	margin: 0;
	list-style: none;
	transition: all 0.3s ease-in-out;
}


.nav-list li .dropdown-menu li a {
	padding-left: 2.5rem;
	display: block;
	text-decoration: none;
	color: var(--black);
	transition: all 0.2s ease-in-out;
	font-size: .875rem;
	padding-top: .875rem;
	padding-bottom: .875rem;
}

.nav-list li .dropdown-menu li a:hover,
.nav-list li .dropdown-menu li a:active {
	background-color: var(--black);
	color: var(--white);
}

/* Show menu in mobile */
.dropdown.open .dropdown-menu {
	opacity: 1;
}

/* Adjusting layout for mobile dropdown */
.main-nav.open .nav-list {
	position: relative;
}

.nav-list .dropdown.open .dropdown-menu {
	position: static;
	/* Static positioning for proper stacking */
}



/* Mobile only */
@media (max-width: 767px) {
	.nav-list {
		overflow-y: scroll;
	}

	.dropdown .dropdown-menu {
		visibility: hidden;
		position: static;
		max-height: 0;
		overflow: hidden;
		transition: all 0.3s ease-in-out;
	}

	.dropdown.open .dropdown-menu {
		visibility: unset;
		max-height: 2000px;
	}

	.header-container {
		flex-direction: row-reverse;
	}

}



/* Media Queries */

/* Desktop styles (from md) */
@media (min-width: 768px) {

	header {
		height: var(--header);
	}

	.header-container {
		height: var(--header);
		padding: 0 2rem;
		border-bottom: 1px solid transparent;
		transition: border-color 0.3s ease-in-out;
	}

	.logo img {
		height: 3rem;
	}

	.menu-toggle {
		display: none;
	}

	.main-nav {
		position: static;
		transform: none;
		width: auto;
		height: auto;
		background: none;
		box-shadow: none;
		display: flex;
		flex-direction: row;
		padding: 0;
	}

	.nav-list {
		position: relative;
		display: flex;
		align-items: center;
		gap: 0;
		z-index: 5;
	}

	.nav-list li,
	.nav-list li:last-child {
		border: none;
		padding: 0;
	}

	.nav-list li a {
		padding: 2.2rem 1.5rem;
		background-color: transparent;
		background-size: 0 .5rem;
		background-position: center 100%;
		background-repeat: no-repeat;
		background-image: linear-gradient(var(--lime), var(--lime));
		transition: background-size, .1s linear;
	}

	.nav-list li a:hover {
		background-size: 100% .5rem;
		background-color: transparent;
		transition: background-size, .2s ease;

	}

	body.trans .nav-list>li>a {
		color: var(--white);
	}


	/* main-menu li element with dropdown functionality */
	.dropdown {
		position: static;
	}

	/* Dropdown menu desktop */
	.dropdown .dropdown-menu {
		opacity: 0;
		visibility: hidden;
		padding: 3.5rem 0 1.5rem 100vw;
		width: 200vw;
		transform: translateX(-100vw);
		display: flex;
		background: transparent;
		z-index: 2;
		position: absolute;
		transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
	}

	body.mouse-moved .dropdown .dropdown-menu {
		transition: opacity 0.1s ease-in-out, visibility 0.1s ease-in-out;
	}

	body.mouse-moved .dropdown .dropdown-menu::after {
		/*render custom background and shadow*/
		display: block;
		width: 100%;
		left: 0;
		content: '';
		position: absolute;
		top: 2rem;
		height: calc(100% - 2rem);
		background-color: var(--white);
		box-shadow: 0 1px 10px var(--shadow);
		z-index: -1;
		transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
	}

	body.mouse-moved .dropdown:hover .dropdown-menu {
		opacity: 1;
		visibility: visible;
		max-height: 1000px;
	}

	body.mouse-moved .dropdown:hover .dropdown-menu,
	body.mouse-moved .dropdown:hover .dropdown-menu::after {
		transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
	}

	.dropdown-menu li {
		margin-bottom: .15rem
	}

	.nav-list .dropdown .dropdown-menu a {
		padding-left: 1rem;
		display: inline-block;
		padding-top: .4rem;
		padding-bottom: .4rem;
	}

	/* Dropdown arrow + flip */
	.nav-list .dropdown>a {
		padding-right: 2rem;
		position: relative;
	}

	.nav-list .dropdown>a::after {
		right: 1rem;
		top: .8rem;
	}

	.nav-list .dropdown:hover>a::after {
		transform: translateY(3px) scaleY(-1) rotate(45deg);
	}

	.dropdown-menu li a {
		display: inline-block;
		font-weight: var(--regular);
	}

	.dropdown-menu li:first-child a {
		font-weight: var(--bold);
	}


	/* contact bar below the header content*/

	.contactbar,
	.trans.header-hidden .contactbar {
		position: absolute;
		left: 0;
		bottom: calc(-.5* var(--header));
		height: calc(.5* var(--header));
		width: 100%;
		background-color: var(--lime);
		border-width: 1px 0 1px 0;
		border-style: solid;
		border-color: var(--lime);
		color: var(--black);
		padding: 0 2rem;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: .888rem;
		line-height: 1;
		transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out, background-color 0.2s ease-in;

	}

	.trans .contactbar {
		border-color: var(--halfwhite);
		color: var(--white);
		background-color: var(--shadow);
	}

	.contactbar a,
	.contactbar span {
		display: inline-block;
		color: inherit;
		transition: color 0.2s ease-in-out;
		padding-left: 3rem
	}
}



main {
	transition: filter 0.2s ease-in-out;
}

main::after {
	display: block;
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--black);
	visibility: hidden;
	opacity: 0;
	z-index: 5;
	transition: opacity 0.5s ease-in-out;
}

body.blur.mouse-moved main::after {
	opacity: 0.5;
	visibility: visible;
}

body.blur.mouse-moved {
	overflow-y: hidden;
}


body.trans main {
	margin-top: 0;
}

section {
	padding: 1.8rem 0 2.5rem 0;
}

@media (min-width: 576px) {
	section {
		padding: 4.5rem 0;
	}
}











/* splitted screen style */
.splitted {
	display: flex;
	width: 100%;
	flex-direction: column;
}

.splitted>* {
	flex: initial;
	min-height: 250px;
}

.splitted>.image {
	background-color: var(--primary-dark);

}

@media (min-width:768px) {
	.splitted>* {
		min-height: 400px;
	}
}

@media (min-width:1200px) {
	.splitted {
		flex-direction: row;
	}

	.splitted>* {
		flex: 0 0 50%;
		min-height: 500px;
	}
}










/* Breadcrumbs Styles */


/* hide breadcrumbs on home page */
body.home #breadcrumbs-block {
	display: none;
}

#breadcrumbs-block,
#breadcrumbs-block .row,
#breadcrumbs-block [class^="col-"] {
	padding-top: 0;
	padding-bottom: 0;
	margin-top: 0;
	margin-bottom: 0;
}

#breadcrumbs-block {
	padding-top: 1.5rem;
}

#breadcrumbs {
	/* breadcrumbs container */
	display: inline-block;
	line-height: 0;
	padding: .5rem .75rem .4rem 0;
	margin: 0;
	border-radius: 10rem;
	background-color: transparent;
	color: var(--black);
}

/* choose dark theme for breadcrumbs by adding .dark to #breadcrumbs-block in template-parts/entry-header.php	*/
#breadcrumbs-block.dark #breadcrumbs {
	background-color: var(--primary-dark);
	color: var(--white);
	padding-left: .75rem;
}

#breadcrumbs a:hover {
	color: var(--darkshadow);
}

#breadcrumbs-block.dark #breadcrumbs a:hover {
	color: var(--transwhite);
}

#breadcrumbs a,
#breadcrumbs a:hover {
	background: none;
}

#breadcrumbs a,
#breadcrumbs span {
	font-size: .7rem;
	font-weight: var(--regular);
	display: inline-block;
	line-height: 1.3;
}

#breadcrumbs>span>span:first-child a {
	/* hide first link on mobile */
	font-size: 0;
}

#breadcrumbs>span>span:first-child a::before {
	/* home icon before first link */
	display: inherit;
	content: '';
	width: .7rem;
	height: .7rem;
	background-image: url(../media/ico-home.svg);
	background-repeat: no-repeat;
	background-size: contain;
}

#breadcrumbs-block.dark #breadcrumbs>span>span:first-child a::before {
	filter: invert();
}


@media (min-width: 768px) {

	#breadcrumbs-block {
		padding-top: 3rem;
	}

	#breadcrumbs a,
	#breadcrumbs span,
	#breadcrumbs>span>span:first-child a {
		font-size: .83333333rem;
	}

	#breadcrumbs>span>span:first-child a::before {
		width: .83333333rem;
		height: .83333333rem;
		margin-right: .5rem;
	}


}



/* Sidebar - context Menu */

.sidebar {
	display: none;
	width: calc(var(--sidebar-width) + var(--gap));
	flex-shrink: 0;
	padding: 0 var(--gap);
}

@media (min-width: 992px) {
	.sidebar {
		display: block;
	}
}


.sidebar>div {
	position: -webkit-sticky;
	position: sticky;
	top: calc(var(--header) + 2rem);
	background-color: var(--white);
	box-shadow: 0 1px 10px var(--shadow);
	border-radius: var(--radius);
	transition: top 0.3s ease-in-out;
}

.header-hidden header+main .sidebar>div {
	top: 2rem;
}


.sidebar ul li a {
	font-weight: var(--semibold);
	font-size: .875rem;
	display: block;
	line-height: 1.3;
	padding: .75rem 1.5rem;
	color: var(--pri);
	border-bottom: 1px solid var(--shadow);
	transition: all 0.2s ease-in-out;
}

@media (min-width: 1200px) {
	.sidebar ul li a {
		font-size: .88888888888rem;
	}
}


.sidebar ul li:first-child a {
	border-top-left-radius: var(--radius);
	border-top-right-radius: var(--radius);
	padding-top: 1rem;
	background-color: var(--light);
}

.sidebar ul li:last-child a {
	border-bottom: none;
	border-bottom-left-radius: var(--radius);
	border-bottom-right-radius: var(--radius);
	padding-bottom: 1rem;
}

.sidebar ul li a:hover {
	color: var(--black);
	background-color: var(--light);
}


.main-content {
	flex-grow: 1;
}


@media (min-width: 1920px) {
	.main-content {
		padding-left: var(--gap);
	}
}

/* Footer Styles */


footer.main-footer {
	background-color: var(--primary-dark);
}

footer.main-footer * {
	color: var(--white)
}

footer.main-footer [class^="col-"] {
	margin-bottom: 2rem;
}


footer.main-footer .menu a {
	display: inline-block;
	font-weight: var(--regular);
	font-size: .83333333rem;
	line-height: 1.3;
}

footer.main-footer .menu a:hover {
	color: var(--transwhite);
}


/* hero sections */



.hero {
	position: relative;
	min-height: 45vh;
	overflow: hidden;
}

.hero .row {
	width: 100%;
}

.big-hero .hero {
	min-height: calc(85vh + var(--header));
}

.hero img,
.hero video {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	/* .semi-opacity added after loading hero media - transition  */
	opacity: 0;
	filter: grayscale(100);
	transform: translate(-50%, -50%);
	transition: opacity .75s ease-in-out, filter 1.2s ease-in-out;
}





.hero img.semi-opacity,
.hero video.semi-opacity {
	opacity: 0.4;
	filter: grayscale(0);
}

.hero img.full-opacity,
.hero video.full-opacity {
	opacity: 1;
	filter: grayscale(0);
}


.hero .container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	index: 2;
	padding-top: calc(2*var(--header));
}

.hero h1,
.hero p {
	text-shadow: 0px 0px 5px var(--darkshadow);
	max-width: var(--limit-narrow);
}

.hero [class^="col-"] {
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

/* cta button in hero */
.hero .btn {
	margin-bottom: 0;
}

.hero .excerpt {
	display: none;
}

/* excerpt in hero displayed by template-parts/entry-header-big-excerpt.php*/
.show-excerpt .hero .excerpt {
	display: block;
	max-width: var(--limit-narrow);
	margin-top: 1.5rem;
}


@media (min-width: 992px) {
	.show-excerpt .hero .excerpt {
		margin-bottom: 3rem;
	}
}

body.trans .hero {
	min-height: calc(45vh + var(--header));
}

body.trans .big-hero .hero {
	min-height: calc(85vh + var(--header));
}

body.trans .hero .container {
	padding-top: calc(2*var(--header));
}




/* ===============================
   5. Components Styles
   =============================== */

/* Buttons - general *** *** *** *** ***/

.btn,
input[type="submit"] {
	/* default - colors inherited, trans background */
	display: inline-block;
	width: 100%;
	padding: .75rem 1.25rem;
	margin-bottom: 1.5rem;
	font-size: 1rem;
	font-weight: var(--semibold);
	text-align: center;
	border-radius: var(--radius-full);
	background-color: transparent;
	transition: all .3s ease;
	image-rendering: high-quality;
	position: relative;
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
}

/* Buttons - colors *** *** *** *** ***/


.btn.green {
	background-color: var(--lime);
	color: var(--black);
}

/* device with mouse/touchpad */
@media (hover: hover) and (pointer: fine) {

	/* Pseudoelement — circle */
	.btn::before,
	input[type="submit"]::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 0;
		width: auto;
		height: 100%;
		aspect-ratio: 1 / 1;
		background: var(--halfwhite);
		border-radius: 50%;
		transform: translate(-100%, -50%);
		transition: transform .75s ease;
		pointer-events: none;
	}

	/* cicle animate */
	.btn:hover::before,
	input[type="submit"]:hover::before {
		transform: translate(300px, -50%);
	}

	.btn.green:hover {
		background-color: var(--green);
	}

}

@media (hover: none) and (pointer: coarse) {
	.btn:active {
		transform: translateY(3px);
	}

	.btn.green:active {
		background-color: var(--green);
	}
}

@media screen and (min-width: 576px) {

	.btn,
	input[type="submit"] {
		width: auto;
		/* change from width 100% to normal, auto on desktop*/
	}

	.btn+.btn {
		margin-left: 1.5rem;
		/* space between multiple buttons */
	}

}












/* CTA & go up buttons */
/* default styles */


.cta {
	margin: 0;
	padding: .6rem;
	position: fixed;
	right: .5rem;
	box-shadow: 0 1px 6px 0px var(--darkshadow);
	transition: all .3s ease-in-out;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	width: auto;
}

.btn img {
	display: inline-block;
	width: 1.5rem;
	height: 1.5rem;
	margin: 0 auto;
	text-align: center;
}


.cta span {
	display: none;
}


/* mobile-only */
@media screen and (max-width: 575px) {

	.cta:hover {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
		justify-content: center;
	}

}



/*desktop styles */
@media screen and (min-width: 1200px) {

	/* CTA in header on the right: text & icon */


	.cta {
		box-shadow: 0 1px 6px 0px var(--darkshadow);
		transition: all .3s ease-in-out;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: .4rem;
		position: relative;
		padding: .6rem 1rem;
		width: auto;
	}

	.btn img {
		display: inline-block;
		width: 1.5rem;
		height: 1.5rem;
		margin: 0 auto;
		text-align: center;
	}



	/* Call-to-action button fades up after hiding header  */
	.header-hidden .cta {
		position: fixed;
		bottom: -5rem;
		right: .5rem;
		box-shadow: 0 1px 6px 0px var(--darkshadow);
		animation: slideIn 0.5s forwards;
	}

	@keyframes slideIn {
		from {
			bottom: -5rem;
		}

		to {
			bottom: 1rem;
		}
	}

	#up.showbutton {
		bottom: 1rem;
		/* show to0-top button after scrolling down */
	}

	.header-hidden #up.showbutton {
		bottom: 5rem;
		/* show or move button if header is hidden so cta-button is visible  */
	}

}

/*image styles *** *** *** *** ***/


/* displays image in the original proportions and full size */
img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform 0.25s ease-in-out;
}


/* displays featured image inside the container that forces a specific height on the image */
.featured.image {
	max-height: 600px;
}

@media screen and (max-width: 575px),
screen and (min-width: 992px) and (max-width: 1199px) {
	.featured.image {
		max-height: 350px;
	}
}

.image {
	overflow: hidden;
	position: relative;
	width: 100%;
}

.image.dark {
	background-color: var(--black);
}

.image *:not(img):not(.icon-tile) {
	z-index: 2;
	padding-top: 0;
	padding-bottom: 0;

}

.image *:after {
	display: none;
}

.image.dark img {
	opacity: .4;
}

.image.dark.more-contrast img {
	opacity: .3;
}

.image-centered {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.image-centered img {
	transform: scale(1.01);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100.1%;
	min-height: 100.1%;
}


/* card styles *** *** *** *** ***/

@media screen and (min-width: 1200px) {
	.container.full.has-cards {
		padding-left: calc(.5 * var(--gap) + 4rem);
		padding-right: calc(.5 * var(--gap) + 4rem);
	}
}


.full.has-cards [class^="col-"] {
	margin-bottom: 0;
}

.has-cards [class^="col-"] article {
	height: 100%;
}

.card {
	box-shadow: 0 1px 10px var(--shadow);
	transition: all 0.3s ease-in-out;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius);
	transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
	box-shadow: 0 2px 12px var(--shadow);
}

.card img.wp-post-image,
.card .image {
	border-radius: var(--radius) var(--radius) 0 0;
}

.card-caption {
	position: absolute;
	display: flex;
	-ms-flex-align: end;
	width: 100%;
	height: 100%;
	background: var(--darkshadow);
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.55) 35%, rgba(0, 0, 0, 0) 75%);
	bottom: 0;
	left: 0;
}

.card-caption h3 {
	color: var(--white);
	margin: 0 0 1.5rem 0;
}

.card-text,
.card-caption {
	padding: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	flex: 1;
}

.card-text {
	justify-content: space-between;
}

.card-caption {
	justify-content: flex-end;
}

.card-text * {
	transition: color 0.3s ease-in-out;
}

.card:hover .image img {
	transform: translate(-50%, -50%) scale(1.2);
	transition: transform 0.75s ease-in-out;
}

.more {
	display: block;
	font-size: 1.111111rem;
	font-weight: var(--bold);
	position: relative;
	width: fit-content;
	color: var(--primary)
}

.more::after {
	right: -1.3rem;
	top: 1.1rem;
	transform: rotate(-45deg) translate(0, -.5rem);
	border-color: var(--primary);
}

/*
@keyframes bounceLoop {
	0% {
		transform: rotate(-45deg) translate(0, -.5rem);
	}

	50% {
		transform: rotate(-45deg) translate(.5rem, 0);
	}

	100% {
		transform: rotate(-45deg) translate(0, -0.5rem);
	}
}

.card:hover .more::after {
	animation: bounceLoop 1s ease-in-out infinite;
}
*/

.card:hover .card-text span {
	color: var(--primary-dark);
}

.card:hover .card-text.dark span {
	color: var(--transwhite);
}

.card {
	height: 100%;
}

/* container for link and icon in card */
.card-text>div:last-child {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	width: 100%;
}

/* icon in card */
.card .icon img {
	width: 2rem;
	height: 2rem;
}



/* related posts list *** *** *** *** ***/

/* container with heading */
.related {
	background-color: var(--light);
	padding: var(--gap) 0;
	margin: 0 var(--gap) var(--gap) var(--gap);
	border-radius: var(--radius);
}

/* group of items */
.items-group {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap);
	padding: 0 var(--gap);
	width: 100%;

}

/* single item including image and text */
.items-group .item {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: calc((100% - 2 * var(--gap)) / 3);
	box-sizing: border-box;
	margin-bottom: .5rem;
}

/* icon in single item */
.items-group .icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
}

.items-group .icon {
	transition: filter 0.3s ease-in-out;

}

.items-group .icon:hover {}

/* thumbnail in single item */
.items-group .thumbnail .image img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100%;
	min-height: 100%;
	transition: transform 0.3s ease-in-out;
}

.items-group .thumbnail .image:hover img {
	transform: translate(-50%, -50%) scale(1.1);
}

.items-group .thumbnail .image,
.items-group .thumbnail .image img {
	border-radius: var(--radius);

}


.items-group .item a:last-child {
	color: var(--primary);
	font-weight: var(--bold);
	line-height: 1.2;
	padding-top: 1rem;
}

.items-group .item a:last-child:hover {
	color: var(--primary-dark)
}




@media screen and (max-width: 767px) {
	.related {
		padding: 1rem;
		margin: 0 0 2.5rem 0;
	}

	.items-group {
		gap: 1rem;
		padding: 0;
	}

	.items-group .item {
		width: calc(50% - .5rem);
	}
}


@media screen and (max-width: 575px) {
	.items-group .thumbnail .image {
		aspect-ratio: 1 / 1;
	}
}

/* dark theme for the related section */

.dark.related {
	background-color: var(--primary-dark);
	color: var(--white);
}

.dark.related .items-group a {
	color: var(--white);
}

.dark.related .icon img {
	filter: brightness(0) invert(100%);
}

.dark.related .items-group a:hover {
	color: var(--halfwhite)
}

/* toggle displaying icon or thumbnail in related section */

.related .thumbnail {
	display: none;
}

.related.has-thumbnails .thumbnail {
	display: block;
	width: 100%;
}

.related.has-thumbnails .icon {
	display: none;
}

.icon-tile {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	position: absolute;
	top: 50%;
	left: 50%;
	padding: 1rem;
	transform: translate(-50%, -50%);
	background-color: var(--primary);
	border-radius: var(--radius);
}

.icon-tile img {
	width: 2rem;
	height: 2rem;
	margin: 0 auto;
	text-align: center;
	filter: invert(100%) brightness(200%);
	border-radius: none;
}





/* ===============================
	6. Forms Styles
	=============================== */

form {
	max-width: 30rem;
	background-color: var(--beige);
	padding: 1.5rem;
	border-radius: var(--radius);
	box-shadow: 0px 0px 20px var(--shadow);
}

textarea {
	max-height: 15rem;
	overflow-y: auto;
}

/* Opakowanie labeli */
.wpcf7-form p label {
	position: relative;
	display: block;
	font-size: inherit;
}

.wpcf7-form p label>span {
	display: block;
}

.wpcf7-form p label br {
	display: none;
}

/* Floating label as pseudoelement */
.wpcf7-form p label::before {
	content: attr(data-label);
	display: block;
	position: absolute;
	left: 0.75rem;
	top: .75rem;
	color: var(--darkgray);
	font-size: inherit;
	pointer-events: none;
	transition: all 0.2s ease-in-out;
	z-index: 1;
}

.wpcf7-form p label.focus::before,
.wpcf7-form p label.filled::before {
	font-size: .8rem;
	top: 0.1rem;
	color: var(--blue);
}



/* Inputs */
.wpcf7-form input:not([type="submit"]:not([type="checkbox"])),
.wpcf7-form textarea {
	width: 100%;
	padding: 1.2rem 0.75rem 0.3rem 0.75rem;
	font-size: inherit;
	border-style: solid;
	border-width: 1px;
	border-color: var(--beige);
	border-radius: var(--radius);
	background: var(--white);
	transition: all 0.1s ease-in-out;
}


.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
	color: transparent;
}

.wpcf7-form input:not([type="submit"]):hover,
.wpcf7-form textarea:hover,
.wpcf7-form input:not([type="submit"]):focus,
.wpcf7-form textarea:focus {
	border-color: var(--blue);
}

.wpcf7-form input:not([type="submit"]):hover,
.wpcf7-form textarea:hover,
.wpcf7-acceptance .wpcf7-list-item-label:hover::before {
	box-shadow: inset 0 0 0 1px var(--shadow);
}

.wpcf7-form input:not([type="submit"]):focus,
.wpcf7-form textarea:focus {
	box-shadow: inset 0 0 0 2px var(--blue);
}

.wpcf7-form input:not([type="submit"]:not([type="checkbox"])).wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
	border: 2px solid var(--red);
	margin-bottom: 1rem;
	border-radius: var(--radius) var(--radius) 0 0;
}

.wpcf7-not-valid-tip {
	display: block;
	position: absolute;
	bottom: -.5rem;
	left: 0;
	width: 100%;
	padding: 0.1rem 0.75rem;
	background-color: var(--red);
	color: var(--white);
	font-size: .8rem;
	border-radius: 0 0 var(--radius) var(--radius);
	margin-bottom: -1px;
	z-index: 2;
	transition: all 0.2s ease-in-out;
}


input[type="checkbox"] {
	display: none;
}

.wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.wpcf7-acceptance .wpcf7-list-item-label {
	line-height: 1
}

.wpcf7-acceptance .wpcf7-list-item-label::before {
	content: '';
	display: inline-block;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: var(--radius);
	background-color: var(--white);
	border: 1px solid var(--darkgray);
	margin-right: .75rem;
	vertical-align: middle;
	transition: all 0.2s ease-in-out;
	margin-bottom: 3px;
	position: relative;
	cursor: pointer;
}

/* Znaczek ✓ w checkboxie */
.privacy-accept:checked+.wpcf7-list-item-label::after {
	content: '';
	position: absolute;
	top: 0.15rem;
	left: 0.45rem;
	width: 0.35rem;
	height: 0.7rem;
	border: solid var(--white);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
	pointer-events: none;
}

/* Ustawienie pozycji względem ::before */
.wpcf7-acceptance .wpcf7-list-item-label {
	position: relative;
}



.privacy-accept:checked+.wpcf7-list-item-label::before {
	background-color: var(--blue);
}

.fullrodo {
	font-size: .85rem;
	line-height: 1.3;
	margin: .5rem 0 2rem 0;
}


.wpcf7 input[type="submit"] {
	background-color: var(--blue);
	color: var(--white);
	border-color: var(--blue);
	cursor: pointer;
}

.wpcf7 p input[type="submit"] {
	margin-bottom: 0;
}

.wpcf7 input[type="submit"]:disabled {
	background-color: var(--gray);
	border-color: var(--gray);
	cursor: not-allowed;
}

.wpcf7 input[type="submit"]:not(:disabled):hover {
	background-color: var(--darkblue);
	border-color: var(--darkblue);
}



.wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 1rem;
	border: 0 solid var(--aqua);
	border-left-width: .7rem;
	border-radius: var(--radius);
	background-color: var(--white);
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--green);
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border-color: var(--red);
}

.wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--darkyellow);
	/* Orange */
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	border-color: var(--yellow);
}

.wpcf7-spinner {
	display: none;
}

/* ===============================
   X. Utility styles
   =============================== */




.center {
	text-align: center;
}

.center-max {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: auto;
	margin-right: auto;
}

/* element for groupping content */
.block {
	margin-bottom: 1.5rem;
}


.light {
	background-color: var(--light);
}

.white {
	background-color: var(--white);
}

.black {
	background-color: var(--black);
}

.lime {
	background-color: var(--lime);
}

.green {
	background-color: var(--green);
}

.darkgreen {
	background-color: var(--darkgreen);
}

.brown {
	background-color: var(--brown);
}

/* class identyfying dark theme !!!!
Always combine with color-class to get white color of content
on dark back */
.dark {
	color: var(--white);
}

.rad {
	border-radius: var(--radius);
}


/* limit max content width 
mostly for one-column-content in desktop !!!
e.g. paragraphs */

.container.limited,
.limited {
	max-width: var(--limit-wide);
	margin-left: auto;
	margin-right: auto;
}

.limited.rightonly {
	max-width: var(--limit-middle);
	margin-left: 0;
	margin-right: auto;
}

.narrow {
	max-width: var(--limit-narrow);
	margin-left: auto;
	margin-right: auto;
}



/* propotions for grid elements */

.format-auto {
	aspect-ratio: auto;
	height: 100%;
}

.format-quad {
	aspect-ratio: 1 / 1;
}

.format-vertical {
	aspect-ratio: 9 / 16;
}

.format-horizontal {
	aspect-ratio: 16 / 9;
}

.format-panoramic {
	aspect-ratio: 2 / 1;
}

.format-panoramic-wide {
	aspect-ratio: 26 / 10;
}

.rnd {
	border-radius: 2000rem;
	max-width: 600px;
	margin-top: -4rem;
}










.sub-menu {
	display: none;
}