/*
 Theme Name:   Fizjoterapia Warzecha
 Theme URI:    https://fizjoterapiawarzecha.pl
 Description:  GP child theme for fizjo
 Author:       AIO
 Author URI:   https://aiocollective.com
 Template:     generatepress
 Version:      0.1
*/

.copyright-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
	max-width: var(--inner-width);
    padding-inline-start: var(--side-padding);
    padding-inline-end: var(--side-padding);
}

.split-background {
	background: linear-gradient(to right,

			var(--bg-dark) 0,

			var(--bg-dark) 50%,

			#fff 50%,

			#fff 100%);
}

.elementor img.hero-image-float {
	float: right;

	display: block;

	margin: 10px -3vw 0 48px;

	shape-outside: inset(0 round 12vw);
	max-width: 55%;

}



/* TERAPIA SINGLE */

.terapia-description-wrapper h1 {
	font-size: 1.375rem;
	text-transform: uppercase;
	border-bottom: 1px solid #DDDDDD;
	padding-bottom: 1em;
	margin-bottom: 1em;
	min-height: 58px;
}

.terapia-description-wrapper {
	font-size: 1.125rem;
}

.terapia-summary {
	font-size: 16px;
}

.terapia-summary li {
	margin-bottom: 1rem;
}

.terapia-summary h3 {
	font-size: 18px;
	margin-bottom: 0;
	min-height: 80px;
}


/* TERAPIA */

/* icon list from [terapia_list] */
.terapia-list {
	--terapia-accent: #28cfb5;
	--terapia-icon-size: clamp(76px, 5.6vw, 104px);
	--terapia-item-width: 118px;

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: clamp(34px, 4vw, 46px) clamp(24px, 3vw, 42px);
	max-width: 1240px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.terapia-list li {
	flex: 0 1 var(--terapia-item-width);
	min-width: 0;
	margin: 0;
	padding: 0;
	text-align: center;
}

.terapia-list a {
	position: relative;
	display: grid;
	grid-template-rows: var(--terapia-icon-size) minmax(2.8em, auto) 7px;
	row-gap: 18px;
	align-items: start;
	justify-items: center;
	min-height: calc(var(--terapia-icon-size) + 4.1em + 25px);
	color: #353535;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.terapia-list a:hover,
.terapia-list a:focus {
	color: #222222;
}

.terapia-list img {
	display: block;
	width: var(--terapia-icon-size);
	height: var(--terapia-icon-size);
	object-fit: contain;
	opacity: 0.9;
	align-self: end;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.terapia-list a:hover img,
.terapia-list a:focus img {
	opacity: 1;
}

.terapia-list a::after {
	content: "";
	display: block;
	width: min(100%, 118px);
	height: 7px;
	background: transparent;
	transition: background-color 0.2s ease;
}

.terapia-list a.active::after,
.terapia-list li.active a::after,
.terapia-list li[class*="active"] a::after {
	background: var(--terapia-accent);
}

@media (max-width: 1024px) {
	.terapia-list {
		--terapia-icon-size: clamp(70px, 8vw, 94px);
		--terapia-item-width: 122px;
		gap: 34px 30px;
		max-width: 820px;
	}
}

@media (max-width: 640px) {
	.terapia-list {
		--terapia-icon-size: clamp(62px, 18vw, 82px);
		gap: 28px 18px;
		max-width: 420px;
	}

	.terapia-list li {
		flex-basis: calc(50% - 9px);
		max-width: 150px;
	}

	.terapia-list a {
		grid-template-rows: var(--terapia-icon-size) minmax(2.7em, auto) 6px;
		row-gap: 14px;
		min-height: calc(var(--terapia-icon-size) + 4em + 20px);
		font-size: 12px;
	}

	.terapia-list a::after {
		height: 6px;
		width: min(100%, 104px);
	}
}

/* section */
.section-heading {
	margin: 0 0 56px;
	text-align: center;
	font-size: clamp(34px, 3vw, 56px);
	line-height: 1.1;
	font-weight: 700;
	color: #2f2f2f;
	position: relative;
}

/* underline */
.section-heading::after {
	content: "";
	display: block;
	width: 96px;
	height: 3px;
	margin: 16px auto 0;
	background: #2f2f2f;
	border-radius: 2px;
}

/* wrapper */
.terapia-wrapper {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 56px 72px;
	align-items: start;
}

/* each block */
.terapia-block {
	min-width: 0;
	display: flex;
	gap: 40px;
}

.terapia-image {
	width: 30%;
}

.terapia-content {
	width: 70%;
}

/* title */
.terapia-title {
	margin: 0 0 14px;
	font-size: 22px;
	line-height: 1.15;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #3a3a3a;
}

/* list */
.leczenie-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.leczenie-list li {
	position: relative;
	margin: 0 0 10px;
}

.leczenie-list a:not(:hover) {
	color: #353535;
}

/* custom bullet like in mockup */
.leczenie-list li::before {
	content: "»";
	font-size: 1.4em;
	font-weight: 600;
	margin-right: 10px;
}

/* remove bottom margin on last item */
.leczenie-list li:last-child {
	margin-bottom: 0;
}

/* left navigation from [leczenie_side_nav] */
.leczenie-side-nav {
	--leczenie-nav-accent: #13c9b6;
	--leczenie-nav-border: #eeeeee;
	--leczenie-nav-text: #555555;
	--leczenie-nav-text-active: #353535;

	width: 100%;
	color: var(--leczenie-nav-text);
}

.leczenie-side-nav__toggle {
	display: none;
	width: 100%;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	text-align: left;
	appearance: none;
}

.leczenie-side-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.leczenie-side-nav__item {
	margin: 0;
	border-bottom: 1px solid var(--leczenie-nav-border);
}

.leczenie-side-nav__link {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	align-items: center;
	min-height: 58px;
	color: var(--leczenie-nav-text);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.2s ease;
}

.leczenie-side-nav__link:hover,
.leczenie-side-nav__link:focus {
	color: var(--leczenie-nav-text-active);
}

.leczenie-side-nav__marker {
	display: flex;
	align-self: stretch;
	align-items: center;
	justify-content: center;
	color: #444444;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.leczenie-side-nav__text {
	min-width: 0;
	padding: 12px 0 12px 12px;
}

.leczenie-side-nav__item--active .leczenie-side-nav__link,
.leczenie-side-nav__link[aria-current="page"] {
	color: var(--leczenie-nav-text-active);
}

.leczenie-side-nav__item--active .leczenie-side-nav__marker,
.leczenie-side-nav__link[aria-current="page"] .leczenie-side-nav__marker {
	color: #ffffff;
	background: var(--leczenie-nav-accent);
}

.leczenie-side-nav__link:hover .leczenie-side-nav__marker,
.leczenie-side-nav__link:focus .leczenie-side-nav__marker {
	color: var(--leczenie-nav-accent);
}

.leczenie-side-nav__item--active .leczenie-side-nav__link:hover .leczenie-side-nav__marker,
.leczenie-side-nav__item--active .leczenie-side-nav__link:focus .leczenie-side-nav__marker,
.leczenie-side-nav__link[aria-current="page"]:hover .leczenie-side-nav__marker,
.leczenie-side-nav__link[aria-current="page"]:focus .leczenie-side-nav__marker {
	color: #ffffff;
}

@media (max-width: 768px) {
	.leczenie-side-nav {
		border: 1px solid var(--leczenie-nav-border);
		background: #ffffff;
	}

	.leczenie-side-nav__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		min-height: 54px;
		padding: 0 18px;
		border: 0;
		border-radius: 0;
		background: #ffffff;
		box-shadow: none;
		color: var(--leczenie-nav-text-active);
		font-size: 16px;
		font-weight: 700;
		line-height: 1.2;
		cursor: pointer;
		list-style: none;
	}

	.leczenie-side-nav__toggle:hover,
	.leczenie-side-nav__toggle:focus {
		background: #f8f8f8;
		color: var(--leczenie-nav-text-active);
	}

	.leczenie-side-nav__toggle-icon {
		width: 10px;
		height: 10px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg) translateY(-2px);
		transition: transform 0.2s ease;
	}

	.leczenie-side-nav:not(.is-collapsed) .leczenie-side-nav__toggle-icon {
		transform: rotate(225deg) translateY(-2px);
	}

	.leczenie-side-nav__list {
		border-top: 1px solid var(--leczenie-nav-border);
	}

	.leczenie-side-nav.is-collapsed .leczenie-side-nav__list {
		display: none;
	}

	.leczenie-side-nav__link {
		grid-template-columns: 46px minmax(0, 1fr);
		min-height: 54px;
		font-size: 16px;
	}

	.leczenie-side-nav__marker {
		font-size: 20px;
	}

	.leczenie-side-nav__text {
		padding: 10px 14px 10px 10px;
	}
}


@media (max-width: 1400px) {
	.terapia-wrapper {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 48px 48px;
	}
}

@media (max-width: 1024px) {
	.terapia-wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 32px;
	}

	.section-heading {
		margin-bottom: 40px;
	}
}

@media (max-width: 640px) {
	.terapia-wrapper {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.section-heading {
		margin-bottom: 32px;
	}
}

.terapia-section {
	background: #f3f3f3;
	padding: 72px 40px 88px;
}

@media (max-width: 1024px) {
	.terapia-section {
		padding: 56px 24px 72px;
	}
}

@media (max-width: 640px) {
	.terapia-section {
		padding: 40px 20px 56px;
	}
}