/* ============================================================
   base.css — global reset, typography, layout, buttons.
   Reproduces the Elementor kit defaults (post-5) + hello reset.
   RTL-first (site is Hebrew).
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip (not hidden) so it also contains position:fixed descendants
   like the Side Cart panel — prevents phantom horizontal scroll in RTL. */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--font-primary);
	font-weight: var(--fw-thin);
	font-size: var(--base-font-size);
	line-height: var(--base-line-height);
	color: var(--color-text);
	background: var(--color-white);
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-primary);
	font-weight: var(--fw-bold);
	color: var(--color-primary);
	margin: 0 0 .5em;
	line-height: 1.2;
}
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
p  { margin: 0 0 1em; }

/* ---- Layout container ---- */
.wbr-container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: 20px;
}
.wbr-section { padding-block: 40px; }

/* ---- Buttons (kit button style) ---- */
.wbr-btn,
button, input[type="button"], input[type="submit"],
.woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .woocommerce .button {
	display: inline-block;
	background-color: var(--btn-bg);
	color: var(--btn-color);
	font-family: var(--font-primary);
	font-weight: var(--fw-bold);
	font-size: var(--btn-font-size);
	line-height: 1;
	border: var(--btn-border);
	border-radius: var(--btn-radius);
	padding: var(--btn-padding);
	cursor: pointer;
	transition: filter .15s ease, background-color .15s ease;
	text-align: center;
}
.wbr-btn:hover,
button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
	filter: brightness(.92);
	color: var(--btn-color);
}
.wbr-btn--ghost {
	background: transparent;
	color: var(--color-accent);
}

/* ---- Accessibility helpers ---- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}
/* skip-link is hidden via .screen-reader-text (clip); do NOT push off-screen with
   inset-inline-start:-9999px — in RTL that creates ~10000px of horizontal overflow. */
.skip-link:focus {
	position: fixed; left: 10px; top: 10px; width: auto; height: auto;
	clip: auto; -webkit-clip-path: none; clip-path: none;
	z-index: 100000; background: #fff; padding: 10px 16px; border-radius: 6px;
}

/* ---- Lead / contact form (home + contact page) ---- */
.wbr-lead-form { max-width: 720px; margin-inline: auto; text-align: right; }
.wbr-lead-form__row { display: flex; gap: 16px; margin-bottom: 16px; }
.wbr-lead-form input,
.wbr-lead-form select {
	flex: 1; min-width: 0; width: 100%;
	font-family: var(--font-primary); font-size: 16px; font-weight: var(--fw-thin);
	padding: 14px 18px; border: 1px solid #ddd;
	border-radius: 10px;              /* rounded rectangle */
	background-color: #fff; color: #222; /* NOT shorthand — keeps the select's arrow bg-image */
	direction: rtl; text-align: right; /* RTL — phone included */
}
.wbr-lead-form input::placeholder { color: #999; }
.wbr-lead-form input:focus,
.wbr-lead-form select:focus { outline: none; border-color: var(--color-accent); }
.wbr-lead-form__select {
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: left 18px center; padding-inline-start: 40px;
	cursor: pointer;
}
.wbr-lead-form__submit {
	display: block; margin: 8px auto 0; min-width: 220px;
	border-radius: 999px;             /* fully rounded button */
}
.wbr-lead-form__notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 15px; }
.wbr-lead-form__notice.is-ok  { background: #e8f7ec; color: #1a7f37; }
.wbr-lead-form__notice.is-err { background: #fdecea; color: #b3261e; }
@media (max-width: 767px) {
	.wbr-lead-form__row { flex-direction: column; gap: 12px; }
}

/* ---- Responsive breakpoints (kit: 1024 / 767) ---- */
@media (max-width: 1024px) {
	.wbr-container { max-width: 1024px; }
	h1 { font-size: 34px; }
}
@media (max-width: 767px) {
	.wbr-container { max-width: 767px; padding-inline: 16px; }
	h1 { font-size: 28px; }
	h2 { font-size: 24px; }
}
