/* Projects page (פרויקטים לדוגמה). Values from Elementor's post-412.css, kit post-7.css and frontend/shapes CSS. */

/* ---------- Shape dividers (Elementor "waves") ---------- */
.pj-wave {
	position: absolute;
	left: 0;
	width: 100%;
	overflow: hidden;
	line-height: 0;
	direction: ltr;
	pointer-events: none;
}
.pj-wave svg {
	position: relative;
	left: 50%;
	display: block;
	transform: translateX(-50%) rotateY(180deg);
}
.pj-wave path { fill: #fff; }
.pj-wave--bottom { bottom: -1px; transform: rotate(180deg); }
.pj-wave--bottom svg { width: calc(260% + 1.3px); height: 120px; }
.pj-wave--top { top: -1px; }
.pj-wave--top svg { width: calc(230% + 1.3px); height: 100px; }

/* ---------- Hero ---------- */
.pj-hero {
	position: relative;
	background-image: linear-gradient(130deg, #8000dd 0%, #00f2ff 89%);
}
.pj-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../../../images/2020/07/BG-Social-Media.png") center center / cover no-repeat;
	opacity: 0.15;
}
.pj-hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 1200px;
	min-height: 500px;
	margin-inline: auto;
	padding: 10px;
	text-align: center;
	color: #fff;
}
.pj-hero__title {
	margin: 0 0 20px;
	font-family: "Varela Round", sans-serif;
	font-size: 70px;
	font-weight: 300;
	line-height: 1.2;
}
.pj-hero__sub {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 40px;
	font-weight: 300;
	line-height: 1;
}

/* ---------- "Our sites" ---------- */
.pj-intro {
	max-width: 1140px;
	margin: 30px auto 0;
	padding: 10px;
}
.pj-intro__title {
	margin: 0;
	font-family: "Varela Round", sans-serif;
	font-size: 70px;
	font-weight: 300;
	line-height: 1.2;
	text-align: center;
	color: #4632da;
}

/* ---------- A project band ---------- */
.pj-project {
	position: relative;
	margin-top: 50px;
	padding: 5% 0 0;
}
.pj-project::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../../../images/2020/07/BG-Join-Clients.png") center center / cover no-repeat;
	filter: saturate(200%);
}
.pj-project__inner {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 1200px;
	min-height: 500px;
	margin-inline: auto;
}
.pj-project--img-right .pj-project__inner { flex-direction: row-reverse; }
.pj-project__text,
.pj-project__media { width: 50%; }
/* Elementor: padding 0 10% 0 15% of a half-width column = 5% / 7.5% of the row. */
.pj-project__text { padding: 0 5% 0 7.5%; }
.pj-project__media { padding: 10px; }

.pj-project__name {
	margin: 0 0 20px;
	font-family: "Varela Round", sans-serif;
	font-size: 50px;
	font-weight: 300;
	line-height: 1.2;
	color: #3d4459;
}
.pj-project__name a,
.pj-project__name a:hover { color: inherit; }
.pj-project__sub {
	margin: 0 0 20px;
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
	font-weight: 300;
	line-height: 1;
	text-align: start;
	color: #4054b2;
}

/* The descriptions were <h5>s inside a text widget: Alef 20px/1.2, margins .5rem / 1rem. */
.pj-desc {
	display: flow-root; /* the widget was a flex item: its margins don't collapse with the paragraphs' */
	margin-bottom: 20px;
	font-family: "Alef", sans-serif;
	color: #3d4459;
}
.pj-desc--justify { text-align: justify; }
.pj-desc p {
	margin: 8px 0 16px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
}
.pj-desc p + p { margin-top: 16px; }
/* Reisha: the second paragraph was a <p> (margin .9rem) inside the <h5>. */
.pj-desc--reisha p:first-child { margin-bottom: 14.4px; }
.pj-desc--reisha p + p { margin-top: 0; }
.pj-desc__alt { color: #5a5a5a; font-family: "Heebo", sans-serif; white-space: pre-wrap; }
.pj-desc--pad { padding-bottom: 40px; } /* a trailing empty line (<h5>&nbsp;</h5>) on the live page */

.pj-project__cta { text-align: left; }
.pj-btn {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: 30px;
	background-color: #4054b2;
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.1);
	font-family: "Montserrat", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	color: #fff;
	transition: all 0.3s;
}
.pj-btn:hover,
.pj-btn:focus { background-color: #8000dd; color: #fff; }
.pj-btn__icon { width: 0.875em; height: 1em; flex: none; }

/* Overlapping screenshots */
.pj-shot { text-align: right; }
.pj-shot img {
	display: inline-block;
	vertical-align: middle;
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.12);
}
.pj-shot--1 { margin-bottom: calc(3% + 20px); }
.pj-shot--1 img { width: 60%; border-radius: 300px 100px 100px 100px; }
.pj-shot--2 { margin-top: -15%; text-align: left; }
.pj-shot--2 img { width: 90%; border-radius: 100px 100px 300px 100px; }

.pj-project--yefet .pj-shot--1 img { width: 71%; height: 180px; }
.pj-project--yefet .pj-shot--2 img { width: 91%; }
/* The live page has an empty (broken) image widget between the two: 20px more. */
.pj-project--tpa .pj-shot--2 { margin-top: calc(20px - 15%); }

/* ---------- Call to action ---------- */
.pj-cta {
	position: relative;
	/* The image below rises 10% of its width above the section: keep it clear of the last project (live: 50px,
	   where the image touched the project above). */
	margin-top: 130px;
	padding: 0 0 50px;
	background-image: linear-gradient(130deg, #8000dd 0%, #00f2ff 89%);
}
.pj-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../../../images/2020/07/CTA-Shapes.png") center center / cover no-repeat;
	opacity: 0.15;
}
.pj-cta__inner {
	position: relative;
	display: flex;
	max-width: 1200px;
	margin-inline: auto;
}
.pj-cta__media { width: 55%; }
.pj-cta__media img {
	display: block;
	width: 100%;
	margin-top: -10%;
	border-radius: 300px 100px 100px 100px;
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.12);
}
.pj-cta__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 44.917%;
	padding: 50px 30px 0;
	color: #fff;
}
.pj-cta__title {
	margin: 0 0 20px;
	font-family: "Varela Round", sans-serif;
	font-size: 45px;
	font-weight: 300;
	line-height: 1.2;
}
.pj-cta__sub {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.pj-wave--bottom svg { height: 195px; }
	.pj-wave--top svg { height: 70px; }
	.pj-hero { padding: 0 5%; }
	.pj-hero::before { background-position: center left; }
	.pj-hero__inner { min-height: 350px; padding: 5px; }
	.pj-hero__title { font-size: 40px; }
	.pj-intro__title { font-size: 35px; }

	.pj-project { margin: 5% 0; padding: 10% 5% 0; }
	.pj-project__text { padding: 0 0 0 3.5%; }
	.pj-project__name { font-size: 35px; text-align: left; }
	.pj-project__sub { font-size: 16px; }
	.pj-project .pj-shot--1 img { width: 65%; }
	.pj-project .pj-shot--2 img { width: 90%; }

	.pj-cta { padding: 5%; }
	.pj-cta::before { background-position: center left; }
	.pj-cta__media { padding-left: 20px; }
	.pj-cta__media img { margin-top: -16%; }
	.pj-cta__text { padding: 0; }
	.pj-cta__title { font-size: 34px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.pj-wave--bottom svg { height: 50px; }
	.pj-hero { padding: 10% 5% 0; }
	.pj-hero__inner { min-height: 280px; }
	.pj-hero__title { font-size: 30px; }
	.pj-hero__sub { font-size: 18px; }
	.pj-intro__title { font-size: 30px; }

	.pj-project { padding: 25% 5% 0; }
	.pj-project__inner,
	.pj-project--img-right .pj-project__inner { flex-direction: column-reverse; min-height: 0; }
	.pj-project--text-first .pj-project__inner { flex-direction: column; }
	.pj-project__text,
	.pj-project__media { width: 100%; }
	.pj-project__text { padding: 5%; text-align: center; }
	.pj-project__media { margin-top: 50px; }
	.pj-project__name { font-size: 28px; text-align: center; }
	.pj-project__sub { font-size: 18px; text-align: center; }
	.pj-desc, .pj-desc--justify { text-align: center; }
	.pj-project__cta { text-align: center; }
	.pj-project .pj-shot--1 img { width: 55%; }
	.pj-project .pj-shot--2 img { width: 82%; }
	.pj-project--yefet .pj-shot--1 img { width: 100%; max-width: 81%; height: 115px; }

	.pj-cta { margin-top: 100px; padding: 15% 5% 5%; }
	.pj-cta__inner { flex-direction: column; }
	.pj-cta__media,
	.pj-cta__text { width: 100%; }
	.pj-cta__media img { margin-top: 20%; }
	.pj-cta__text { padding: 5%; text-align: center; }
	.pj-cta__title { font-size: 28px; }
}
