/* LeadHub Theme – mobile-first, RTL, system fonts (no web-font download), WCAG AA. */
:root {
	--lh-primary: #0b3a66;
	--lh-primary-600: #0f4c85;
	--lh-accent: #c2410c;
	--lh-accent-700: #9a3412;
	--lh-bg: #f5f7fb;
	--lh-surface: #fff;
	--lh-text: #172033;
	--lh-muted: #4b5565;
	--lh-border: #d9dfe8;
	--lh-focus: #1d4ed8;
	--lh-radius: 12px;
	--lh-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
	--container: 1840px;
	--font: system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--lh-text); background: var(--lh-bg); text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--lh-primary-600); text-underline-offset: .15em; }
a:hover { color: var(--lh-primary); }
:focus-visible { outline: 3px solid var(--lh-focus); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--lh-text); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 3.5vw, 3.5rem); }
.container--narrow { max-width: 1040px; }
.site-main { min-height: 50vh; }

.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 1000; background: #fff; color: var(--lh-primary); padding: .75rem 1rem; border-radius: 8px; font-weight: 700; box-shadow: var(--lh-shadow); }
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--lh-border); backdrop-filter: saturate(1.2) blur(6px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.site-brand__name { font-weight: 800; font-size: 1.2rem; color: var(--lh-primary); text-decoration: none; }
.site-brand img { max-height: 44px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .75rem; background: none; border: 1px solid var(--lh-border); border-radius: 8px; font: inherit; color: var(--lh-text); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-nav { display: none; }
.nav-open .site-nav { display: block; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--lh-border); padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem; box-shadow: var(--lh-shadow); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; padding: .7rem 0; color: var(--lh-text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--lh-bg); }
.site-nav .sub-menu a { padding-inline-start: 1rem; font-weight: 400; }
.site-header__cta { margin-top: 1rem; width: 100%; }
@media (min-width: 960px) {
	.nav-toggle { display: none; }
	.site-nav, .nav-open .site-nav { display: flex; align-items: center; gap: 1.5rem; position: static; padding: 0; box-shadow: none; border: 0; background: none; }
	.site-nav > ul { display: flex; gap: 1.25rem; }
	.site-nav li { position: relative; }
	.site-nav li a { border: 0; padding: .5rem 0; font-size: .98rem; }
	.site-nav li a:hover { color: var(--lh-primary-600); }
	.site-nav .sub-menu { display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; background: #fff; border: 1px solid var(--lh-border); border-radius: 8px; padding: .5rem 1rem; box-shadow: var(--lh-shadow); }
	.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
	.site-header__cta { margin: 0; width: auto; min-height: 42px; }
}

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 1rem 0; padding: 0; font-size: .875rem; color: var(--lh-muted); }
.breadcrumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: .35rem; color: #8a94a6; }
.breadcrumbs a { color: var(--lh-muted); }
.breadcrumbs [aria-current] { color: var(--lh-text); }

/* Sections */
.lh-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.lh-section--flush { padding-block: 1.5rem; }
.lh-section__title { margin-bottom: 1.25rem; }
.lh-section__title a { color: inherit; text-decoration: none; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.section-head__link { font-weight: 700; text-decoration: none; }
.lh-how { background: var(--lh-surface); border-block: 1px solid var(--lh-border); }
.lh-page-header { margin: 1.5rem 0 2rem; }
.lh-page-header__lead { font-size: 1.15rem; color: var(--lh-muted); max-width: 760px; }

/* Service hero */
.lh-hero { background: linear-gradient(180deg, #eaf1fa 0%, var(--lh-bg) 100%); padding-bottom: clamp(1.5rem, 5vw, 3rem); }
.lh-hero__grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .lh-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 3rem; padding-top: .5rem; } }
.lh-hero__title { color: var(--lh-primary); }
.lh-hero__lead { font-size: 1.125rem; color: #2c3648; max-width: 920px; }
.lh-hero__lead p:last-child { margin-bottom: 0; }
.lh-trust-inline { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .95rem; color: #2c3648; }
.lh-trust-inline li::before { content: "✓"; color: #0a6b2c; font-weight: 800; margin-inline-end: .4rem; }
.lh-toc { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.25rem; font-size: .9rem; }
.lh-toc span { color: var(--lh-muted); }
.lh-toc a { padding: .35rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--lh-border); text-decoration: none; color: var(--lh-primary); }

.lh-layout { display: grid; gap: 2rem; padding-block: 2rem 3rem; }
@media (min-width: 1024px) { .lh-layout { grid-template-columns: minmax(0, 1fr) 300px; } .lh-layout--single { grid-template-columns: minmax(0, 860px); justify-content: center; } .lh-layout--calc { grid-template-columns: minmax(0, 1fr) 380px; } }
.lh-article { min-width: 0; }
.lh-block { margin-bottom: clamp(2rem, 5vw, 3rem); }
.lh-aside { display: none; }
@media (min-width: 1024px) { .lh-aside { display: block; } .lh-sticky-cta { position: sticky; top: 90px; background: var(--lh-surface); border: 1px solid var(--lh-border); border-radius: var(--lh-radius); padding: 1.25rem; box-shadow: var(--lh-shadow); } }
.lh-layout--calc .lh-aside { display: block; }
.lh-sticky-cta__title { font-weight: 800; font-size: 1.15rem; color: var(--lh-primary); margin-bottom: .35rem; }
.lh-back-link { font-weight: 700; }

.lh-cta-band { background: var(--lh-primary); color: #fff; padding-block: 2.5rem; }
.lh-cta-band__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.lh-cta-band__title { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 800; margin: 0; }
.lh-cta-band :focus-visible { outline-color: #fff; }


/* Service / local page shell: content + sticky quote form in one grid (no empty gap under the hero) */
.lh-page--service, .lh-page--local { background: linear-gradient(180deg, #eaf1fa 0, var(--lh-bg) 620px); }
.lh-shell { display: grid; gap: 1.5rem clamp(2rem, 3.5vw, 4rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.lh-shell__hero, .lh-shell__aside, .lh-shell__body { min-width: 0; }
.lh-shell__hero { padding-bottom: .5rem; }
.lh-shell__hero .lh-hero__title { margin-top: .25rem; }
.lh-shell__body > .lh-block:first-child { margin-top: .5rem; }
@media (min-width: 1024px) {
	.lh-shell { grid-template-columns: minmax(0, 1fr) clamp(360px, 27vw, 460px); grid-template-areas: "hero aside" "body aside"; align-items: start; }
	.lh-shell__hero { grid-area: hero; }
	.lh-shell__body { grid-area: body; }
	.lh-shell__aside { grid-area: aside; align-self: stretch; padding-top: 3.25rem; }
	.lh-shell__sticky { position: sticky; top: 84px; }
	.admin-bar .lh-shell__sticky { top: 116px; }
	.lh-shell .lh-cards--2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
@media (min-width: 1024px) and (max-height: 900px) {
	.lh-shell__sticky { position: static; }
}

/* Home */
.home-hero { background: radial-gradient(1200px 500px at 85% -10%, #dbe8f7 0%, transparent 60%), linear-gradient(180deg, #eef4fb, var(--lh-bg)); padding-block: clamp(2.5rem, 8vw, 5.5rem); }
.home-hero__inner { display: grid; gap: clamp(2rem, 4vw, 5rem); align-items: center; }
@media (min-width: 1100px) { .home-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.home-hero__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.home-hero__tiles a { display: grid; justify-items: center; gap: .25rem; padding: 1rem .5rem; background: #fff; border: 1px solid var(--lh-border); border-radius: var(--lh-radius); text-decoration: none; color: var(--lh-text); font-weight: 700; text-align: center; transition: box-shadow .15s, border-color .15s; }
.home-hero__tiles a:hover { box-shadow: var(--lh-shadow); border-color: #b9c3d3; }
.home-hero__tiles .lh-icon { margin: 0; }
@media (max-width: 1099px) { .home-hero__tiles { display: none; } }
@media (min-width: 1100px) { .home-categories { display: none; } }
.home-hero__text { max-width: 900px; }
.home-hero__eyebrow { font-weight: 700; color: var(--lh-primary-600); font-size: .95rem; margin-bottom: .75rem; }
.home-hero__title { font-size: clamp(2rem, 6vw, 3.25rem); color: var(--lh-primary); margin-bottom: 1rem; }
.home-hero__lead { font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: #2c3648; }
.home-picker { background: #fff; border: 1px solid var(--lh-border); border-radius: var(--lh-radius); padding: 1rem; box-shadow: var(--lh-shadow); margin: 1.5rem 0 1rem; }
.home-picker label { display: block; font-weight: 700; margin-bottom: .5rem; }
.home-picker__row { display: grid; gap: .75rem; }
@media (min-width: 640px) { .home-picker__row { grid-template-columns: 1fr auto; } }
.home-picker select { width: 100%; min-height: 52px; padding: .6rem .8rem; border: 1px solid #8a94a6; border-radius: 8px; font: inherit; background: #fff; }
.home-hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: #2c3648; }
.home-hero__trust li::before { content: "✓"; color: #0a6b2c; font-weight: 800; margin-inline-end: .4rem; }
.home-why__grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .home-why__grid { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.home-why__lead { font-size: 1.15rem; color: var(--lh-muted); }
.home-why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.home-why__list li { background: #fff; border: 1px solid var(--lh-border); border-radius: var(--lh-radius); padding: 1.25rem; display: grid; gap: .25rem; }
.home-why__list strong { color: var(--lh-primary); font-size: 1.1rem; }
.home-why__list span { color: var(--lh-muted); }
.home-faq { background: #fff; border-block: 1px solid var(--lh-border); }
.home-pros { background: var(--lh-primary); color: #fff; }
.home-pros h2 { color: #fff; }
.home-pros__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.home-pros p { margin: 0; color: #e6eef8; }
.lh-btn--light { color: #fff; border-color: rgba(255, 255, 255, .6); }
.lh-btn--light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.home-pros :focus-visible { outline-color: #fff; }
.home-about { color: var(--lh-muted); }

/* Post cards */
.post-cards { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { position: relative; background: #fff; border: 1px solid var(--lh-border); border-radius: var(--lh-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.post-card:hover { box-shadow: var(--lh-shadow); }
.post-card:focus-within { outline: 3px solid var(--lh-focus); outline-offset: 2px; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card__body { padding: 1rem 1.25rem 1.25rem; }
.post-card__title { font-size: 1.1rem; margin: 0 0 .35rem; }
.post-card__title a { color: var(--lh-text); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a:focus-visible { outline: none; }
.post-card__meta { font-size: .85rem; color: var(--lh-muted); margin: 0 0 .35rem; }
.post-card__excerpt { color: var(--lh-muted); font-size: .95rem; margin: 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--lh-border); border-radius: 8px; background: #fff; text-decoration: none; }
.nav-links .current { background: var(--lh-primary); color: #fff; border-color: var(--lh-primary); }

/* Article */
.article-layout { display: grid; gap: 2rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1100px); justify-content: center; } .article-layout--with-form { grid-template-columns: minmax(0, 1fr) clamp(360px, 27vw, 440px); justify-content: stretch; gap: clamp(2rem, 3.5vw, 4rem); } .article-aside { position: sticky; top: 90px; align-self: start; } }
.article { background: #fff; border: 1px solid var(--lh-border); border-radius: var(--lh-radius); padding: clamp(1.25rem, 4vw, 2.5rem); min-width: 0; }
.article__label { display: inline-block; background: #fff4e5; color: #8a4b00; font-size: .8rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }
.article__title { color: var(--lh-primary); }
.article__meta { color: var(--lh-muted); font-size: .9rem; }
.article__image { margin: 0 0 1.5rem; }
.article__image img { border-radius: var(--lh-radius); width: 100%; }
.article__footer { border-top: 1px solid var(--lh-border); margin-top: 2rem; padding-top: 1rem; font-size: .95rem; }
.article__footer-label { color: var(--lh-muted); }
.article-aside__link { margin-top: .75rem; font-weight: 700; }
.article-services, .related-posts { margin-top: 2rem; padding: 1.25rem; border-radius: var(--lh-radius); background: var(--lh-bg); }
.article-services h2, .related-posts h2 { font-size: 1.2rem; }
.article-services ul, .related-posts ul { margin: 0; padding-inline-start: 1.25rem; }

.entry-content { overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.5rem; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.5rem; }
.entry-content img { border-radius: 8px; height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--lh-border); padding: .5rem .75rem; text-align: start; }
.entry-content blockquote { border-inline-start: 4px solid var(--lh-primary-600); margin-inline: 0; padding-inline-start: 1rem; color: var(--lh-muted); }
.entry-content .alignleft { float: left; margin: 0 1rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0 0 1rem 1rem; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.wp-caption, .wp-caption-text { max-width: 100%; font-size: .9rem; color: var(--lh-muted); }
.page-article { background: #fff; border: 1px solid var(--lh-border); border-radius: var(--lh-radius); padding: clamp(1.25rem, 4vw, 2.5rem); margin-bottom: 3rem; }

.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form__input { flex: 1; min-height: 48px; padding: .5rem .8rem; border: 1px solid #8a94a6; border-radius: 8px; font: inherit; }
.error-page { padding-block: 3rem; }
.error-page__links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.error-page__links a { display: inline-block; padding: .5rem .9rem; border: 1px solid var(--lh-border); border-radius: 999px; background: #fff; text-decoration: none; }
.comments { margin-top: 2rem; }
.comment-list { padding-inline-start: 1rem; }

/* Footer */
.site-footer { background: #0a1b2e; color: #d5dde8; margin-top: 0; padding-top: 3rem; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 2rem; }
.site-footer__title { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; font-size: .85rem; color: #aeb9c8; }
.site-footer__bottom p { margin: 0; }

.mobile-cta { position: fixed; inset-inline: 0; bottom: 0; z-index: 90; padding: .6rem clamp(.75rem, 4vw, 1rem) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--lh-border); box-shadow: 0 -4px 16px rgba(16, 24, 40, .08); transition: transform .2s; }
.mobile-cta.is-hidden { transform: translateY(110%); }
@media (min-width: 1024px) { .mobile-cta { display: none; } }
@media (max-width: 1023px) { body:has(.mobile-cta) .site-footer { padding-bottom: 5rem; } }
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

@media print { .site-header, .site-footer, .mobile-cta, .breadcrumbs { display: none !important; } body { background: #fff; } }
