/*
Theme Name: Flowery
Theme URI: 
Author: Yzoja
Author URI: 
Description: Specjalny motyw dla Eweliny
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flowery
Tags: 
*/

:root {
	--fontMain: 'Google Sans';
	--fontAccent: 'Fraunces';
	--gap: 36px;
	--em: 16px;
	--text: #151616;
	--bg: #fff;
	--accentBg: #FFF4E6;
	--accent: #FFCF7A;
	--accent2: #BA9D71;

	--content: 1000px;
	--container: 1400px;

	--border: 1px solid #ddd;
}

/* header */

.home header.wp-block-template-part {
	position: fixed;
}

#header {
	width: 100%;
}

header.wp-block-template-part {
	position: sticky;
	display: flex;
	align-items: center;
	justify-content: stretch;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 55px;
	z-index: 1005;
	background: rgba(252, 235, 237, 0.7);
	backdrop-filter: blur(25px);
	border-bottom: 1px solid var(--accent2);
}

.noScroll header.wp-block-template-part {
	z-index: 5;
}

.admin-bar header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 0);
}

.mpwpb-tree-cta-btn {
	font-size: 1.2em !important;
	background: #278d27 !important;
}

.wp-block-site-logo a {
	display: block;
	margin-bottom: -30px;
}

/* homepage */

.hero {
	position: relative;
	min-height: 750px;
	display: flex;
	align-items: flex-end;
}

.hero.alignfull.has-background {
	border-radius: 0;
	max-width: 100%;
}

.hero:after {
	content: "";
	position: absolute;
	background: url('assets/top.svg') no-repeat bottom center;
	background-size: cover;
	inset: 0;
	height: 80%;
	pointer-events: none;
	animation: float 18s infinite alternate-reverse;
}

main :not(.off) > .wp-block-column, main .wp-block-group:not(.off) > *:not(.off):not(.wp-block-media-text) {
	opacity: 0;
	filter: blur(10px);
	transition: all 0.5s;
	transform: translateY(-40px);
}

main .inview:not(.off) > .wp-block-column, main .wp-block-group.inview:not(.off) > *:not(.off):not(.wp-block-media-text) {
	opacity: 1;
	filter: blur(0);
	transform: translateY(0px);
}

@keyframes float {
	from {
		transform: translateY(-5%) rotate(2deg);
	}

	to {
		transform: translateY(0) rotate(-1deg);
	}
}

.cta {
	position: relative;
}

.cta:after, .cta:before {
	content: "";
	position: absolute;
	background: url('assets/left-02.svg') no-repeat center left;
	background-size: contain;
	inset: -20% 0;
	height: 140%;
	pointer-events: none;
}

.cta:after {
	background: url('assets/right-03.svg') no-repeat center right;
}

.blog-hero {
	position: relative;
}

.blog-hero:after {
	content: "";
	position: absolute;
	background: url('assets/blog-left.svg') no-repeat;
	background-size: 250px auto;
	background-position: -50px -40%;
	inset: 0;
	height: 100%;
	pointer-events: none;
}

.hero h1 {
	font-size: 2em;
}

.hero h1:first-line {
	font-size: 1.5em;
}

.hero .wp-block-buttons {
	margin-top: var(--gap);
}

.hero div {
	position: relative;
	z-index: 2;
}

main {
	margin-block: 0;
}

:is(#entry, .wp-block-media-text__content) > *:not(div):not(section) {
	margin-bottom: 1em;
}

.entry-content > *:not(.alignwide):not(.alignfull) {
	max-width: var(--content);
	margin-inline: auto;
}

.alignwide {
	margin-inline: auto;
	max-width: var(--container);
}

.hero .wp-block-media-text__content {
	margin-bottom: var(--gap);
}

.wp-block-columns h3 {
	margin-block: 1.5em;
}

.wp-block-group > div > h3 {
	margin-block: 0;
}

h2 {
	margin-bottom: 1em;
}

/* extras */

.fancy {
	position: relative;
	padding-bottom: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.fancy.has-background {
	border-radius: 1em;
}

.fancy > figure {
	position: absolute;
	z-index: 3;
	max-width: 25%;
}

.fancy > figure:nth-of-type(1) {
	top: -2em;
	left: -2em
}

.wp-block-post {
	display: flex;
	flex-direction: column;
}

div > a {
	text-decoration: none;
}

.wp-block-post-navigation-link {
	line-height: 1.2em;
}

.wp-block-post-navigation-link a {
	text-wrap: balance;
}

.wp-block-post-navigation-link span {
	font-size: 2em;
}

.owl-item li {
	padding-top: 40px;
}

.wp-block-latest-posts__featured-image {
	transition: all 0.3s;
}

.wp-block-latest-posts__featured-image:hover {
	transform: rotate(2deg);
}

:where(.wp-block-button .wp-block-button__link) {
	background-color: var(--wp--preset--color--custom-ice);
	border-radius: 40px;
	display: inline-block;
}

.wp-block-button__link {
	position: relative;
}

.wp-site-blocks main .wp-block-button__link:after {
	content: "";
	background: url('assets/leaf.svg') no-repeat bottom left;
	background-size: contain;
	position: absolute;
	bottom: -40%;
	left: -50px;
	height: 140%;
	width: 50%;
}

:where(.wp-block-button .wp-block-button__link):hover {
	background-color: var(--wp--preset--color--custom-ash);
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

:root :where(.has-green-background-color) {
	background: #205b2c;
}

a {
	transition: all 0.3s;
}

li p {
	margin: 0;
}

li {
	line-height: 1.4em;
}

.entry-content li + li {
	margin-top: .5em;
}

.entry-content .is-grid li {
	margin-top: 0;
}

.entry-content > div.woocommerce {
	filter: hue-rotate(-222deg);
}

.woocommerce li + li {
	margin-top: 0;
}

.wp-block-post-template {
	grid-auto-flow: dense;
}

.wp-block-post:nth-child(1) {
	grid-column: span 2;
	position: relative;
}

.wp-block-post:nth-child(1) figure {
	margin-bottom: 0;
}

.wp-block-post:nth-child(1) .wp-block-group {
	position: absolute;
	background: var(--bg);
	padding: var(--gap);
	padding-bottom: 0;
	left: 20%;
	right: 0;
	bottom: 0;
}

.cta {
	overflow: hidden;
	border-radius: 50px;
	max-width: 90%;
	margin-inline: auto !important;
}

.alignfull.has-background {
	overflow: hidden;
	border-radius: 50px;
	max-width: 90%;
	margin-inline: auto !important;	
	padding-inline: var(--gap);
}

.entry-content details {
	border: var(--border);
	padding: .5em 1em;
	border-radius: 10px;
}

.entry-content details summary {
	list-style-type: none;
	line-height: 1.4em;
}

.entry-content details summary:before {
	content: "💬";
	padding-right: 1em;
}

.wp-block-media-text__media {
	overflow: hidden;
	border-radius: 30px;
}

.mpwpb_style {
	display: none;
}

/* blog */

.wp-block-post-featured-image a, .wp-block-latest-posts__featured-image img {
	background: #eee;
	border-radius: 30px 30px 0 30px;
}

.wp-block-post-featured-image a img, .wp-block-latest-posts__featured-image img {
	border-radius: 30px 30px 0 30px;
}

.wp-block-post:nth-child(1) .wp-block-group {
	border-radius: 30px 0 0 0;
}

.wp-block-latest-posts__post-title {
	font-family: var(--fontAccent);
	text-decoration: none;
	font-weight: bold;
	font-size: 1.2em;
	margin-block: 10px 1em;
	display: block;
}

.wp-block-latest-posts__post-excerpt {
	line-height: 1.6em;
	opacity: 0.8;
}

.owl-nav {
	position: absolute;
	top: 20%;
	left: -30px;
	right: -30px;
	height: 60px;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.owl-nav button {
	aspect-ratio: 1;
	width: 50px;
	height: 50px;
	background: var(--wp--preset--color--custom-acorn);
	color: var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 3px solid var(--bg);
	box-shadow: 0 10px 10px rgba(0,0,0,0.1);
	border-radius: 30px;
	pointer-events: visible;
	transition: all 0.3s ease-in-out;
}

.owl-nav button:hover {
	transform: scale(1.1);
}

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

	.alignfull.has-background {
		padding-inline: var(--gap);
	}

}

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

	body {
		--gap: 20px;
		--wp--style--root--padding-top: 0px;
		--wp--style--root--padding-right: 20px;
		--wp--style--root--padding-bottom: 0px;
		--wp--style--root--padding-left: 20px;

		--wp--preset--font-size--x-large: 1.5em;
		--wp--preset--font-size--large: 1.3em;
		--wp--preset--font-size--medium: 1em;
	}

	.admin-bar header.wp-block-template-part {
		position: sticky;
		top: 0;
	}

	:root :where(.is-layout-flex) {
		gap: var(--gap);
	}

	.alignfull.has-background {
		padding-inline: var(--gap);
		max-width: 100%;
	}

	.has-background .alignwide {
		padding-inline: 0;
	}

	.alignwide {
		padding-inline: var(--gap);
	}

	.hero {
		padding-top: 100px;
	}

	.hero img {
		max-height: 50vh;
		object-fit: contain;
		object-position: bottom center;
	}

	.hero .wp-block-media-text__content {
		margin-top: -50px;
		backdrop-filter: blur(30px);
	}

	.wp-block-spacer {
		max-height: 50px;
	}

	div > .wp-block-media-text .wp-block-media-text__content {
		padding-inline: 0;
	}

	div > .wp-block-media-text {
		gap: var(--gap);
	}

	.cta:after, .cta:before {
		height: 40%;
	}

	.wp-block-post:nth-child(1) {
		grid-column: 1;
	}

	.wp-block-post:nth-child(1) .wp-block-group {
		position: static;
		padding-inline: 0;
	}

	.wp-block-post:not(:nth-child(1)) p {
		display: none;
	}

	.alignwide .alignwide, #header .alignwide {
		padding-inline: 0;
	}

	.wp-block-site-logo img {
		max-width: calc(100vw - 150px);
	}

	.wp-block-navigation__responsive-container {
		height: 100vh;
	}

	.mpwpb-static-template .mpwpb_static_area #mpwpb_make_static_booking {
		display: block !important;
	}

	.owl-nav {
		left: var(--gap);
		right: var(--gap);
	}

	.owl-nav button {
		width: 40px;
		height: 40px;
	}

	.accent img {
		max-height: 120px;
		float: right;
		margin-bottom: -40px;
		margin-top: -80px;
		width: auto !important;
	}

	h2 {
		font-size: 1.3em;
	}

	.single-post main h1 {
		font-size: 1.5em;
	}

	#wp--skip-link--target .blog-hero, #author, #post-nav, .hero .wp-block-media-text__content {
		padding: var(--wp--style--root--padding-left) !important;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left)) !important;
	}

	.blog-hero.alignfull.has-background, .cta {
		margin-top: 0 !important;
		max-width: 100vw;
		border-radius: 0 !important;
	}

	#author {
		font-size: 18px;
		display: block;
		border-radius: 0 !important;
	}

	#author figure {
		float: right;
		width: 120px;
		margin-left: 1em;
		margin-bottom: 1em;
	}

	#author figure:last-child {
		display: none;
	}

	#author .wp-block-post-author-name {
		line-height: 1.3em;
		margin-bottom: 1em;
	}

	.blog-hero:after {
		content: "";
		position: absolute;
		background: url(assets/blog-left.svg) no-repeat;
		background-size: 150px auto;
		background-position: -10% 10%;
		inset: 0;
		margin-left: -20px;
		height: 100%;
		pointer-events: none;
		transform: rotate(5deg);
	}

	#post-nav {
		border-radius: 0 !important;
		display: block;
		font-size: 14px;
	}

	#post-nav div + div {
		margin-top: 1em;
	}

	.has-background .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content {
		padding-inline: 0;
	}

	.wp-block-latest-posts__featured-image {
		width: 100%;
	}

	.wp-block-latest-posts__featured-image a, .wp-block-latest-posts__featured-image img {
		display: block;
		width: 100%;
	}

}

/* translations */

#wp--skip-link--target .next_service_area button, .mpwpb_close_date {
	font-size: 0 !important;
}

#wp--skip-link--target .next_service_area button:before {
	content: "Przejdź Dalej";
	font-size: 16px;
}

.mpwpb_close_date:before {
	content: "Nieczynne";
	font-size: 13px;
}

#wp--skip-link--target .next_service_area button i {
	font-size: 16px;
}

.next_service_area .mpwpb-tree-selected-label {
	display: none !important;
}

.mpwpb-static-template .mpwpb-inline-wc-checkout-form {
	padding-inline: 0 !important;
}

#customer_details span.required {
	display: inline-block !important;
	color: red;
}

.woocommerce-error:before {
	position: static;
	margin-right: 10px;
	font-size: 14px;
}

.mpwpb_order_proceed_area .woocommerce-error {
	font-size: 0 !important;
	display: flex !important;
}

.mpwpb_order_proceed_area .woocommerce-error:after {
	content: "Uzupełnij wszystkie wymagane pola";
	font-size: 14px;
}

main h1 {
	padding-top: var(--gap);
}

footer .is-layout-flex {
	flex-wrap: wrap;
}