:root {
	--kb-ink: #1C1512;
	--kb-accent: #D2551E;
	--kb-ink-soft: #453027;
	--kb-paper: #FFFFFF;
	--kb-cream: #FFFFFF;
	--kb-line: rgba(28,21,18, 0.12);
	--kb-cc-h: 0px;
}

/* Focus: nothing for mouse/touch; a thin, quiet line in the element's own colour for keyboard users only */
:focus:not(:focus-visible) {
	outline: none !important;
}
:focus-visible {
	outline: 1.5px solid currentColor !important;
	outline-offset: 3px !important;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: none !important;
}

/* Site font for the whole Hebrew site: Google Sans */
body.kb-he .elementor *:not(i):not([class*="eicon"]):not([class*="fa-"]) {
	font-family: "Google Sans", Heebo, Arial, sans-serif;
}

body.kb-he {
	background-color: var(--kb-cream);
}

/* Case-study posts: hero entrance */
html:not(.kb-nomotion) .kb-cs-hero > * {
	animation: kb-rise-7909 0.8s cubic-bezier(0.22, 0.7, 0.2, 1) 0.1s both;
}
html:not(.kb-nomotion) .kb-cs-hero > *:nth-child(2) { animation-delay: 0.18s; }
html:not(.kb-nomotion) .kb-cs-hero > *:nth-child(3) { animation-delay: 0.3s; }
html:not(.kb-nomotion) .kb-cs-hero > *:nth-child(4) { animation-delay: 0.4s; }
html:not(.kb-nomotion) .kb-cs-hero > *:nth-child(5) { animation-delay: 0.5s; }
html:not(.kb-nomotion) .kb-cs-hero + .e-con,
html:not(.kb-nomotion) .kb-cs-hero + * {
	animation: kb-rise-7909 1s cubic-bezier(0.22, 0.7, 0.2, 1) 0.55s both;
}

/* Contact form: native placeholder colour with enough contrast */
body.kb-he .elementor input::placeholder,
body.kb-he .elementor textarea::placeholder {
	color: #85796F;
	opacity: 1;
}

/* Kobi Studio logo: same ink as the buttons */
svg[viewBox="0 0 685.21 166.85"] .cls-1 {
	fill: #1C1512;
}

/* ---------- Shared UI reset ---------- */
.kb-ui,
.kb-ui * {
	box-sizing: border-box;
	font-family: "Google Sans", Heebo, Arial, "Helvetica Neue", sans-serif;
	letter-spacing: normal;
	text-transform: none;
}

.kb-ui button,
.kb-ui button:hover,
.kb-ui button:focus {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	font: inherit;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.kb-ui [hidden] {
	display: none !important;
}

/* ---------- Skip link ---------- */
.kb-skip {
	position: fixed;
	top: -120px;
	left: 16px;
	right: auto;
	z-index: 2147483647;
	padding: 12px 20px;
	border-radius: 10px;
	background: var(--kb-ink);
	color: #FFFFFF !important;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.kb-skip:focus {
	top: 16px;
}

/* ---------- Cookie banner ---------- */
.kb-cc {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2147483000;
	width: 440px;
	max-width: calc(100vw - 40px);
	padding: 24px;
	border-radius: 20px;
	background: var(--kb-paper);
	color: var(--kb-ink);
	border: 1px solid var(--kb-line);
	box-shadow: 0 24px 60px rgba(28,21,18, 0.18);
	font-size: 15px;
	line-height: 1.6;
}

.kb-cc-title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--kb-ink);
}

.kb-cc-text {
	margin: 0 0 18px;
	font-size: 15px;
	color: #453027;
}

.kb-cc-text a {
	color: var(--kb-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.kb-cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.kb-ui .kb-btn {
	flex: 1 1 auto;
	min-height: 48px;
	padding: 12px 18px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
}

.kb-ui .kb-btn-primary {
	background: var(--kb-ink);
	color: #FFFFFF;
	border: 2px solid var(--kb-ink);
}

.kb-ui .kb-btn-primary:hover {
	background: var(--kb-accent);
	border-color: var(--kb-accent);
	color: #FFFFFF;
}

.kb-ui .kb-btn-secondary {
	background: #FFFFFF;
	color: var(--kb-ink);
	border: 2px solid var(--kb-ink);
}

.kb-ui .kb-btn-secondary:hover {
	background: var(--kb-cream);
	color: var(--kb-ink);
}

/* ---------- Accessibility button and panel ---------- */
.kb-a11y {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 2147483001;
	font-size: 15px;
	line-height: 1.5;
}

.kb-ui .kb-a11y-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border-radius: 50%;
	border: 3px solid #FFFFFF;
	background: #D2551E;
	color: #FFFFFF;
	box-shadow: 0 10px 30px rgba(28,21,18, 0.25);
}

.kb-ui .kb-a11y-btn:hover {
	background: #B4441A;
	color: #FFFFFF;
	border-color: #FFFFFF;
}

.kb-a11y-panel {
	position: absolute;
	left: 0;
	bottom: 68px;
	width: 320px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	padding: 20px;
	border-radius: 20px;
	background: var(--kb-paper);
	color: var(--kb-ink);
	border: 1px solid var(--kb-line);
	box-shadow: 0 24px 60px rgba(28,21,18, 0.22);
}

.kb-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.kb-panel-title {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--kb-ink);
}

.kb-panel-title:focus {
	outline: none !important;
}

.kb-ui .kb-icon-btn {
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 10px;
	border: 1px solid var(--kb-line);
	background: #FFFFFF;
	color: var(--kb-ink);
	font-size: 24px;
	line-height: 1;
}

.kb-ui .kb-icon-btn:hover {
	background: var(--kb-cream);
	color: var(--kb-ink);
}

.kb-size-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 14px;
	background: var(--kb-cream);
}

.kb-size-label {
	flex: 1 1 auto;
	font-size: 15px;
	font-weight: 600;
	color: var(--kb-ink);
}

.kb-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.kb-ui .kb-opt {
	min-height: 48px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 2px solid var(--kb-line);
	background: #FFFFFF;
	color: var(--kb-ink);
	font-size: 14px;
	font-weight: 600;
}

.kb-ui .kb-opt:hover {
	border-color: var(--kb-ink);
	background: #FFFFFF;
	color: var(--kb-ink);
}

.kb-ui .kb-opt[aria-pressed="true"] {
	background: var(--kb-accent);
	border-color: var(--kb-accent);
	color: #FFFFFF;
}

.kb-ui .kb-opt-size {
	min-width: 48px;
	min-height: 40px;
	padding: 6px 10px;
	background: #FFFFFF;
	font-size: 16px;
}

.kb-ui .kb-opt-reset {
	background: var(--kb-cream);
}

.kb-links-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--kb-line);
}

.kb-links-row a {
	color: var(--kb-accent);
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Keep the icon above the cookie banner on small screens */
@media (max-width: 600px) {
	.kb-cc {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		max-width: none;
		padding: 20px;
	}

	.kb-a11y {
		left: 12px;
		bottom: 12px;
	}

	.kb-cc-open .kb-a11y {
		bottom: calc(var(--kb-cc-h) + 24px);
	}

	.kb-a11y-panel {
		max-width: calc(100vw - 24px);
		max-height: calc(100vh - 100px);
	}
}

/* ---------- Visitor preferences ---------- */
html.kb-contrast body,
html.kb-contrast body *:not(.kb-ui):not(.kb-ui *) {
	background-color: #000000 !important;
	background-image: none !important;
	color: #FFFFFF !important;
	border-color: #FFFFFF !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

html.kb-contrast body a:not(.kb-ui *),
html.kb-contrast body a:not(.kb-ui *) * {
	color: #FFEB3B !important;
	text-decoration: underline !important;
}

html.kb-contrast [class*="blob"],
html.kb-contrast [style*="blur"] {
	visibility: hidden !important;
}

html.kb-contrast img[src*="kobistudiologo"] {
	filter: invert(1) !important;
}

html.kb-contrast svg[viewBox="0 0 685.21 166.85"] .cls-1 {
	fill: #FFFFFF !important;
}

/* Light high-contrast mode */
html.kb-contrast-light body,
html.kb-contrast-light body *:not(.kb-ui):not(.kb-ui *) {
	background-color: #FFFFFF !important;
	background-image: none !important;
	color: #000000 !important;
	border-color: #000000 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

html.kb-contrast-light body a:not(.kb-ui *),
html.kb-contrast-light body a:not(.kb-ui *) * {
	color: #0000CC !important;
	text-decoration: underline !important;
}

html.kb-contrast body *::after,
html.kb-contrast-light body *::after {
	background-image: none !important;
}

html.kb-contrast-light [class*="blob"],
html.kb-contrast-light [style*="blur"] {
	visibility: hidden !important;
}

/* Highlight headings */
html.kb-headings body :is(h1, h2, h3, h4, h5, h6):not(.kb-ui *) {
	outline: 2px solid #D2551E !important;
	outline-offset: 4px !important;
	background-color: rgba(243,198,166, 0.35) !important;
}

/* Text spacing (WCAG 1.4.12 values) */
html.kb-spacing body *:not(.kb-ui):not(.kb-ui *) {
	letter-spacing: 0.12em !important;
	word-spacing: 0.16em !important;
	line-height: 1.8 !important;
}

html.kb-spacing body p:not(.kb-ui *) {
	margin-bottom: 2em !important;
}

/* Big cursor */
html.kb-cursor,
html.kb-cursor * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 4l30 18-13 3 8 15-6 3-8-15-11 9z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important;
}

/* Strong keyboard / focus highlight */
html.kb-focus body :focus {
	outline: 3px solid #D2551E !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 7px rgba(210,85,30, 0.25) !important;
}

html.kb-gray {
	filter: grayscale(1);
}

html.kb-links body a:not(.kb-ui *) {
	text-decoration: underline !important;
	text-underline-offset: 3px !important;
	outline: 2px dashed currentColor !important;
	outline-offset: 2px !important;
}

html.kb-font body *:not(.kb-ui):not(.kb-ui *) {
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
	letter-spacing: 0.01em !important;
	word-spacing: 0.06em !important;
}

html.kb-nomotion *,
html.kb-nomotion *::before,
html.kb-nomotion *::after {
	animation-duration: 0.001ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.001ms !important;
	scroll-behavior: auto !important;
}

html.kb-nomotion [data-interaction-id] {
	opacity: 1 !important;
	transform: none !important;
}

/* Hero entrance: pure CSS, starts with the first paint, so nothing flashes or jumps */
@keyframes kb-rise-7909 {
	from {
		opacity: 0;
		transform: translate3d(0, 28px, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

[data-interaction-id="2860593e"] {
	animation: kb-rise-7909 0.8s cubic-bezier(0.22, 0.7, 0.2, 1) 0.1s both;
}

[data-interaction-id="75191831"] {
	animation: kb-rise-7909 1s cubic-bezier(0.22, 0.7, 0.2, 1) 0.2s both;
}

[data-interaction-id="3bb41b41"] {
	animation: kb-rise-7909 0.9s cubic-bezier(0.22, 0.7, 0.2, 1) 0.4s both;
}

[data-interaction-id="327718fd"] {
	animation: kb-rise-7909 0.9s cubic-bezier(0.22, 0.7, 0.2, 1) 0.55s both;
}

/* Scroll reveals: start hidden so the reveal never jumps from visible to hidden.
   The animation script sets opacity: 1 inline when it runs; kb.js reveals everything if that script is missing. */
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="484d8195"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="2a570971"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="7eb27db2"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="4d293239"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="35b35817"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="53d3dd1"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="56452253"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="5af49ae7"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="c69fa66"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="7d0e642d"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="3c9d600c"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="544a2f72"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="7e2cb842"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="4eb6b3d8"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="3d953ffa"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="17dc0f9f"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="33cc1f99"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="32807a26"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="734e3d6f"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="346b3d8c"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="74edddef"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="61284ba7"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="ff87f0d"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="25a3514e"],
html:not(.kb-nomotion):not(.kb-reveal-all) body.page-id-7869 [data-interaction-id="2d4dff55"] {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	[data-interaction-id] {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
}

@media print {
	.kb-ui {
		display: none !important;
	}
}
