/*
Theme Name:   Astra Child – Reisha
Theme URI:    https://reisha.co.il
Description:  Child theme for reisha.co.il. Holds the free replacements for Elementor Pro features (custom font, custom code/CSS, recommendations carousel, store notice) – see elementor-pro-migration-plan-2026-11-27.html.
Author:       WebAndMor
Template:     astra
Version:      2.0.1
Text Domain:  astra-child
*/

/* ---------- Custom font (was Elementor Pro "Custom Fonts", same family name so existing typography keeps working) ---------- */
@font-face {
	font-family: "סביון חן קיפר";
	src: url("/wp-content/uploads/2024/02/OHSavyonChenKipper-Regular.woff2") format("woff2"),
	     url("/wp-content/uploads/2024/02/OHSavyonChenKipper-Regular.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* ---------- Was Elementor Pro Custom Code #2292 ("CSS for product choose bookmark") ---------- */
.wapo-addon-title span {
	font-family: "Open Sans", sans-serif;
	font-size: 1rem;
	font-style: normal;
	font-weight: 700;
	color: var(--ast-global-color-3);
}

/* ---------- Was widget custom CSS (loop carousel on the home page) ---------- */
.home .ast-separate-container .ast-article-post,
.home .ast-separate-container .ast-article-single {
	padding: 20px 20px;
}

/* ---------- Was widget custom CSS (Frontend Admin recommendation form in the popup) ---------- */
.acf-field .acf-label { margin: 10px 0 0 0 !important; }
.acf-fields > .acf-field { padding: 0 !important; }

/* ---------- Recommendation form: opened by the "להוספת המלצה" button (was an Elementor Pro popup) ---------- */
.reisha-rec-form { display: none; }
.reisha-rec-form.is-open { display: block; }
.reisha-rec-form.is-open > .elementor-widget-container {
	background: #fff;
	border: 2px solid var(--e-global-color-secondary, #1AB6B6);
	border-radius: 20px;
	padding: 20px;
	max-width: 520px;
	margin: 10px auto 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

/* ---------- Quotes (were Elementor Pro "Blockquote") ---------- */
.reisha-bq blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
	quotes: none;
}
.reisha-bq blockquote::before {
	content: "\201D";
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 3.2em;
	line-height: .8;
	height: .45em;
	color: var(--reisha-quote-color, #59064C);
}
.reisha-bq--boxed blockquote::before { display: none; }
.reisha-bq blockquote p { margin: 0 0 .4em; }
.reisha-bq cite {
	display: block;
	font-style: normal;
	font-family: "Tinos", serif;
	font-weight: 500;
	margin-top: .3em;
}
.reisha-bq--boxed blockquote {
	padding: 20px 25px;
	box-shadow: 0 0 10px rgba(0, 0, 0, .25);
	background: transparent;
}

/* ---------- Highlighted heading word (was Elementor Pro "Animated Headline", underline marker) ---------- */
.reisha-mark {
	position: relative;
	display: inline-block;
	z-index: 1;
}
.reisha-mark::after {
	content: "";
	position: absolute;
	inset-inline: -4%;
	bottom: .02em;
	height: .32em;
	z-index: -1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 60' preserveAspectRatio='none'%3E%3Cpath d='M7.7 45.6s185.5-34.6 485-14.2' fill='none' stroke='%231AB6B6' stroke-width='14' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* ---------- Galleries (were Elementor Pro "Gallery" justified/masonry; now Basic Gallery) ---------- */
.reisha-gallery .gallery { margin: 0 !important; }
.reisha-gallery .gallery-item img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}
.reisha-gallery--logos .gallery-item img {
	height: 90px;
	object-fit: contain;
	background: #fff;
}
@media (max-width: 767px) {
	.reisha-gallery .gallery-item img { height: 120px; }
	.reisha-gallery--logos .gallery-item img { height: 70px; }
}

/* ---------- Download card (was Elementor Pro "Call to Action") ---------- */
.reisha-cta {
	position: relative;
	display: block;
	min-height: 343px;
	text-align: center;
	text-decoration: none !important;
	overflow: hidden;
	box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}
.reisha-cta img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s ease;
}
.reisha-cta:hover img, .reisha-cta:focus-visible img { transform: scale(1.06); }
.reisha-cta__body {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	min-height: 343px;
	padding: 24px;
}
.reisha-cta__title {
	font-size: 26px;
	font-weight: 700;
	color: #59064C;
	background: rgba(255, 255, 255, .8);
	padding: 4px 14px;
}
.reisha-cta__btn {
	display: inline-block;
	background: #1AB6B6;
	border: 1px solid #1AB6B6;
	color: #fff;
	padding: 12px 24px;
	font-weight: 600;
}
.reisha-cta:hover .reisha-cta__btn, .reisha-cta:focus-visible .reisha-cta__btn { background: #1AB6B6BA; }

/* ---------- Recommendations carousel (was Elementor Pro "Loop Carousel" + loop item #2622) ---------- */
.reisha-recs { position: relative; }
.reisha-recs__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * 20px) / 3);
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 10px 4px 20px;
	scrollbar-width: none;
}
.reisha-recs__track::-webkit-scrollbar { display: none; }
.reisha-rec {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 14px;
	border: 2px solid var(--e-global-color-secondary, #3ECECE);
	border-radius: 20px;
	padding: 8%;
	background: url("/wp-content/uploads/2024/03/רקע.png") center / cover no-repeat;
	text-align: right;
}
.reisha-rec__text {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
	font-size: 18px;
	color: var(--e-global-color-astglobalcolor2, var(--ast-global-color-2));
}
.reisha-rec__author { display: flex; align-items: center; gap: 10px; }
.reisha-rec__author img {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	border: 2px solid #54595F;
	object-fit: cover;
	flex: none;
}
.reisha-rec__name { display: block; font-size: 14px; font-weight: 700; color: #4F5655; }
.reisha-rec__job { display: block; font-size: 12px; font-weight: 700; color: #4F5655; }
.reisha-recs__dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.reisha-recs__dots button {
	width: 10px;
	height: 10px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--e-global-color-text, #7A7A7A);
	opacity: .4;
	cursor: pointer;
}
.reisha-recs__dots button[aria-current="true"] { opacity: 1; }
@media (max-width: 1024px) { .reisha-recs__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 767px) { .reisha-recs__track { grid-auto-columns: 88%; } }

/* ---------- Contact forms (were Elementor Pro "Form", now WPForms Lite) ---------- */
.reisha-contact-form .wpforms-container { margin: 0 !important; }
.reisha-contact-form .wpforms-form .wpforms-field { padding: 0 0 15px !important; }
.reisha-contact-form .wpforms-form input[type="text"],
.reisha-contact-form .wpforms-form input[type="email"],
.reisha-contact-form .wpforms-form input[type="tel"] {
	width: 100% !important;
	max-width: 100% !important;
	background: #fff !important;
	color: #4F5655 !important;
	border: 1px solid #F3F6F3 !important;
	border-radius: 0 !important;
	font-family: "Montserrat", sans-serif;
	font-size: 18px !important;
	padding: 8px 12px !important;
	height: auto !important;
}
.reisha-contact-form .wpforms-form button[type="submit"] {
	width: 100%;
	background: #F0F0F0 !important;
	color: #181818 !important;
	border: 1px solid #F0F0F0 !important;
	border-radius: 0 !important;
	font-family: "Montserrat", sans-serif;
	font-size: 18px !important;
	font-weight: 600 !important;
	letter-spacing: 1px;
	padding: 10px 20px !important;
	height: auto !important;
}
.reisha-contact-form .wpforms-form button[type="submit"]:hover { background: #1AB6B6 !important; color: #fff !important; }
.reisha-contact-form .wpforms-confirmation-container-full { background: transparent; border: 0; color: #F0F0F0; padding: 0; }
.reisha-contact-form--light .wpforms-confirmation-container-full { color: inherit; }
/* Flyer form: the Elementor Pro form used the Astra global colours 0 / 1 (hover) for the button */
.reisha-contact-form--light .wpforms-form button[type="submit"] {
	background: var(--ast-global-color-0) !important;
	border-color: var(--ast-global-color-0) !important;
	color: #fff !important;
	font-size: 15px !important;
}
.reisha-contact-form--light .wpforms-form button[type="submit"]:hover { background: var(--ast-global-color-1) !important; border-color: var(--ast-global-color-1) !important; }

/* ---------- Store notice on the product page (was Elementor Pro popup #5845) ---------- */
.reisha-store-notice {
	max-width: 420px;
	margin: 0 auto 30px;
	padding: 24px;
	text-align: center;
	border-radius: 16px;
	background: linear-gradient(160deg, #FFF2D7 0%, #E8F8F8 100%);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	font-size: 16px;
	line-height: 1.6;
}
.reisha-store-notice h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; color: #59064C; }
.reisha-store-notice img { max-width: 120px; height: auto; margin: 12px auto 0; display: block; }
