/**
 * Pilates Studio — Hebrew visual system (maps existing Elementor DOM to a modern studio look).
 * Structure/widgets stay in Elementor; this layer harmonizes typography, surfaces, and motion.
 * Scoped: html[lang^="he"] — Arabic/English unchanged.
 */

html[lang^="he"] {
	--pilates-ink: #1e2824;
	--pilates-ink-soft: #3d4944;
	--pilates-sage: #7d8f72;
	--pilates-sage-mid: #9aad8f;
	--pilates-sage-deep: #4f5d48;
	--pilates-sand: #e8dfd3;
	--pilates-cream: #f5f1ea;
	--pilates-white: #fdfcfa;
	--pilates-glass: rgba(253, 252, 250, 0.78);
	--pilates-shadow: 0 20px 55px rgba(30, 40, 36, 0.14);
	--pilates-shadow-sm: 0 8px 24px rgba(30, 40, 36, 0.08);
	--pilates-radius-lg: clamp(12px, 2vw, 24px);
	--pilates-radius-md: 14px;
	--pilates-radius-pill: 999px;
	--pilates-line: rgba(30, 40, 36, 0.08);
}

/* --- Base page ---------------------------------------------------------- */

html[lang^="he"] body.pilates-studio-he {
	font-family: "Heebo", "Rubik", system-ui, -apple-system, sans-serif;
	color: var(--pilates-ink-soft);
	background-color: var(--pilates-cream);
	background-image:
		radial-gradient(ellipse 140% 85% at 100% -5%, rgba(125, 143, 114, 0.16), transparent 50%),
		radial-gradient(ellipse 90% 60% at 0% 105%, rgba(232, 223, 211, 0.7), transparent 52%);
	background-attachment: fixed;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/* --- Header (Elementor Theme Builder) ---------------------------------- */

html[lang^="he"] .elementor-location-header {
	position: relative;
	z-index: 100;
}

html[lang^="he"] .elementor-location-header .elementor-header {
	background: var(--pilates-glass) !important;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--pilates-line);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

html[lang^="he"] .elementor-location-header .elementor-nav-menu a.elementor-item {
	font-weight: 500;
	letter-spacing: 0.02em;
	border-radius: 8px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

html[lang^="he"] .elementor-location-header .elementor-nav-menu a.elementor-item:hover,
html[lang^="he"] .elementor-location-header .elementor-nav-menu a.elementor-item.elementor-item-active {
	color: var(--pilates-sage-deep) !important;
	background-color: rgba(125, 143, 114, 0.12) !important;
}

html[lang^="he"] .elementor-location-header .elementor-widget-image img {
	border-radius: 10px;
}

/* Language switcher rows */
html[lang^="he"] .elementor-location-header .lan_switecher_c .elementor-nav-menu a {
	opacity: 0.85;
}

html[lang^="he"] .elementor-location-header .lan_switecher_c .elementor-nav-menu a:hover {
	opacity: 1;
}

/* --- Hero: slideshow section (.ops-section on live site) ---------------- */

html[lang^="he"] .ops-section {
	position: relative;
	isolation: isolate;
}

html[lang^="he"] .ops-section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		165deg,
		rgba(30, 40, 36, 0.45) 0%,
		rgba(30, 40, 36, 0.25) 42%,
		rgba(30, 40, 36, 0.55) 100%
	);
}

html[lang^="he"] .ops-section .e-con,
html[lang^="he"] .ops-section .elementor-element {
	position: relative;
	z-index: 2;
}

html[lang^="he"] .ops-section .elementor-heading-title {
	color: var(--pilates-white) !important;
	text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

html[lang^="he"] .ops-section .elementor-widget-text-editor,
html[lang^="he"] .ops-section .elementor-widget-text-editor * {
	color: rgba(253, 252, 250, 0.94) !important;
	line-height: 1.85;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

/* --- Typography (all headings widgets) -------------------------------- */

html[lang^="he"] .elementor-widget-heading .elementor-heading-title {
	font-family: "Frank Ruhl Libre", "Heebo", serif;
	color: var(--pilates-ink);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.18;
}

html[lang^="he"] .elementor-widget-heading .elementor-heading-title.elementor-size-default {
	line-height: 1.22;
}

/* --- Body text, lists, tabs --------------------------------------------- */

html[lang^="he"] .elementor-widget-text-editor,
html[lang^="he"] .elementor-widget-icon-list .elementor-icon-list-text,
html[lang^="he"] .elementor-tab-content {
	line-height: 1.8;
	color: var(--pilates-ink-soft);
}

html[lang^="he"] .elementor-widget-text-editor a {
	color: var(--pilates-sage-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s ease;
}

html[lang^="he"] .elementor-widget-text-editor a:hover {
	color: var(--pilates-ink);
}

/* Icon lists: studio “benefit” rows */
html[lang^="he"] .elementor-widget-icon-list .elementor-icon-list-item {
	padding: 0.35rem 0.65rem;
	margin-bottom: 0.25rem;
	border-radius: var(--pilates-radius-md);
	transition: background-color 0.2s ease;
}

html[lang^="he"] .elementor-widget-icon-list .elementor-icon-list-item:hover {
	background-color: rgba(125, 143, 114, 0.08);
}

html[lang^="he"] .elementor-widget-icon-list .elementor-icon-list-icon {
	color: var(--pilates-sage-deep) !important;
}

/* --- Buttons ----------------------------------------------------------- */

html[lang^="he"] .elementor-button,
html[lang^="he"] .elementor-widget-button .elementor-button {
	border-radius: var(--pilates-radius-pill);
	font-weight: 600;
	letter-spacing: 0.04em;
	transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.2s ease, color 0.2s ease;
	box-shadow: var(--pilates-shadow-sm);
}

html[lang^="he"] .elementor-button:hover,
html[lang^="he"] .elementor-widget-button .elementor-button:hover {
	transform: translateY(-2px);
	box-shadow: var(--pilates-shadow);
}

html[lang^="he"] .elementor-button:active,
html[lang^="he"] .elementor-widget-button .elementor-button:active {
	transform: translateY(0);
}

/* --- Parent containers (Elementor flex / grid sections) --------------- */

html[lang^="he"] .elementor-page .e-con.e-parent {
	scroll-margin-top: 88px;
}

html[lang^="he"] .elementor-page .e-con.e-parent:not(.ops-section) {
	/* Subtle separation without fighting Elementor gradient backgrounds */
	border-bottom: 1px solid transparent;
}

/* Inner boxed containers: soft “mat” surface when mostly empty of custom bg */
html[lang^="he"] .e-con.e-parent > .e-con-inner {
	border-radius: var(--pilates-radius-lg);
}

/* --- Icon boxes -------------------------------------------------------- */

html[lang^="he"] .elementor-widget-icon-box .elementor-icon-box-wrapper {
	border-radius: var(--pilates-radius-lg);
	padding: 1.25rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: var(--pilates-shadow-sm);
	background-color: rgba(253, 252, 250, 0.65) !important;
	border: 1px solid var(--pilates-line);
}

html[lang^="he"] .elementor-widget-icon-box .elementor-icon-box-wrapper:hover {
	transform: translateY(-4px);
	box-shadow: var(--pilates-shadow);
}

html[lang^="he"] .elementor-widget-icon-box .elementor-icon-box-title {
	font-family: "Frank Ruhl Libre", "Heebo", serif;
	color: var(--pilates-ink);
}

/* --- Flip boxes (class grid on homepage) ------------------------------- */

html[lang^="he"] .elementor-widget-flip-box .elementor-flip-box {
	border-radius: var(--pilates-radius-lg);
	overflow: hidden;
	box-shadow: var(--pilates-shadow-sm);
	border: 1px solid var(--pilates-line);
}

html[lang^="he"] .elementor-widget-flip-box .elementor-flip-box__layer {
	border-radius: var(--pilates-radius-lg);
}

html[lang^="he"] .elementor-widget-flip-box .elementor-flip-box__front .elementor-flip-box__layer__overlay {
	background-color: rgba(253, 252, 250, 0.92) !important;
}

html[lang^="he"] .elementor-widget-flip-box .elementor-flip-box__back .elementor-flip-box__layer__overlay {
	background: linear-gradient(145deg, var(--pilates-sage-deep), #3d4a38) !important;
}

html[lang^="he"] .elementor-widget-flip-box .elementor-flip-box__heading {
	font-family: "Frank Ruhl Libre", "Heebo", serif !important;
}

/* --- Images & carousel -------------------------------------------------- */

html[lang^="he"] .elementor-widget-image img,
html[lang^="he"] .elementor-image-carousel-wrapper img {
	border-radius: var(--pilates-radius-lg);
}

html[lang^="he"] .elementor-widget-image img {
	box-shadow: var(--pilates-shadow-sm);
}

html[lang^="he"] .elementor-widget-image-carousel .swiper-slide {
	border-radius: var(--pilates-radius-lg);
	overflow: hidden;
}

html[lang^="he"] .elementor-widget-image-carousel .swiper-pagination-bullet {
	background: var(--pilates-sand);
	opacity: 1;
}

html[lang^="he"] .elementor-widget-image-carousel .swiper-pagination-bullet-active {
	background: var(--pilates-sage-deep);
	transform: scale(1.15);
}

html[lang^="he"] .elementor-widget-image-carousel .elementor-swiper-button {
	color: var(--pilates-sage-deep) !important;
}

/* --- Classic accordion -------------------------------------------------- */

html[lang^="he"] .elementor-accordion .elementor-tab-title {
	border-radius: var(--pilates-radius-md);
	font-weight: 600;
	color: var(--pilates-ink);
	border: 1px solid var(--pilates-line) !important;
	background: var(--pilates-white) !important;
}

html[lang^="he"] .elementor-accordion .elementor-tab-content {
	border-radius: 0 0 var(--pilates-radius-md) var(--pilates-radius-md);
	border: 1px solid var(--pilates-line);
	border-top: none;
	background: rgba(253, 252, 250, 0.85);
}

/* --- Nested accordion (FAQ) ------------------------------------------- */

html[lang^="he"] .elementor-widget-n-accordion {
	--n-accordion-title-normal-color: var(--pilates-ink);
	--n-accordion-title-active-color: var(--pilates-sage-deep);
}

html[lang^="he"] .elementor-widget-n-accordion .e-n-accordion-item-title {
	border-radius: var(--pilates-radius-md) !important;
	border: 1px solid var(--pilates-line) !important;
	background-color: var(--pilates-white) !important;
	font-weight: 600 !important;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

html[lang^="he"] .elementor-widget-n-accordion .e-n-accordion-item[open] > .e-n-accordion-item-title {
	background-color: rgba(125, 143, 114, 0.1) !important;
	border-color: rgba(125, 143, 114, 0.35) !important;
}

html[lang^="he"] .elementor-widget-n-accordion .e-n-accordion-item-title-icon svg {
	color: var(--pilates-sage-deep);
}

/* --- Forms ------------------------------------------------------------- */

html[lang^="he"] .elementor-field-group input:not([type="checkbox"]):not([type="radio"]),
html[lang^="he"] .elementor-field-group textarea,
html[lang^="he"] .elementor-field-group select,
html[lang^="he"] .mf-input,
html[lang^="he"] input.wpcf7-form-control:not([type="submit"]) {
	border-radius: 12px !important;
	border: 1px solid var(--pilates-line) !important;
	background: var(--pilates-white) !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[lang^="he"] .elementor-field-group input:focus,
html[lang^="he"] .elementor-field-group textarea:focus,
html[lang^="he"] .elementor-field-group select:focus,
html[lang^="he"] .mf-input:focus {
	border-color: rgba(125, 143, 114, 0.55) !important;
	box-shadow: 0 0 0 3px rgba(125, 143, 114, 0.2) !important;
	outline: none !important;
}

/* --- Social icons ------------------------------------------------------ */

html[lang^="he"] .elementor-widget-social-icons .elementor-social-icon {
	border-radius: 50%;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[lang^="he"] .elementor-widget-social-icons .elementor-social-icon:hover {
	transform: translateY(-2px);
	box-shadow: var(--pilates-shadow-sm);
}

/* --- Off-canvas (mobile menu) ----------------------------------------- */

html[lang^="he"] .elementor-off-canvas__main,
html[lang^="he"] dialog.elementor-off-canvas__main {
	background: var(--pilates-cream) !important;
	border-inline-start: 1px solid var(--pilates-line);
}

html[lang^="he"] .elementor-off-canvas__main .elementor-nav-menu a {
	border-radius: 10px;
}

/* --- Footer ------------------------------------------------------------ */

html[lang^="he"] .elementor-location-footer .elementor-footer {
	background: linear-gradient(180deg, rgba(232, 223, 211, 0.35) 0%, rgba(245, 241, 234, 1) 100%) !important;
	border-top: 1px solid var(--pilates-line);
}

html[lang^="he"] .elementor-location-footer .elementor-heading-title {
	color: var(--pilates-ink);
}

/* --- Dividers / spacers ------------------------------------------------- */

html[lang^="he"] .elementor-widget-divider .elementor-divider-separator {
	border-color: var(--pilates-line) !important;
}

/* --- Legacy sections (if any) ----------------------------------------- */

@media (max-width: 767px) {
	html[lang^="he"] .elementor-section,
	html[lang^="he"] .e-con.e-parent {
		scroll-margin-top: 76px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html[lang^="he"] .elementor-button,
	html[lang^="he"] .elementor-widget-button .elementor-button,
	html[lang^="he"] .elementor-widget-icon-box .elementor-icon-box-wrapper,
	html[lang^="he"] .elementor-widget-social-icons .elementor-social-icon,
	html[lang^="he"] .elementor-widget-icon-list .elementor-icon-list-item {
		transition: none !important;
	}

	html[lang^="he"] .elementor-button:hover,
	html[lang^="he"] .elementor-widget-button .elementor-button:hover,
	html[lang^="he"] .elementor-widget-icon-box .elementor-icon-box-wrapper:hover,
	html[lang^="he"] .elementor-widget-social-icons .elementor-social-icon:hover {
		transform: none !important;
	}
}
