/* Fonts are self-hosted so they load on filtered networks too. */
@font-face {
  font-family: "Assistant"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/assistant-hebrew-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Assistant"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/assistant-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Frank Ruhl Libre"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("../fonts/frank-ruhl-libre-hebrew-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Frank Ruhl Libre"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("../fonts/frank-ruhl-libre-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f1ea;
  --bg-2: #ebe4d7;
  --surface: #fffdf9;
  --ink: #1e2622;
  --ink-2: #434c46;
  --muted: #5c645e;
  --line: #dcd3c4;
  --line-strong: #c4b9a6;
  --accent: #2d5a47;
  --accent-hover: #224737;
  --accent-soft: #e2ebe4;
  --accent-ink: #f7f4ee;
  --gold: #8a5d22;
  --danger: #a13226;
  --danger-soft: #fbebe8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(30, 38, 34, .05), 0 6px 20px rgba(30, 38, 34, .06);
  --font: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="he"] body { font-size: 1.125rem; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; color: #fff; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.brand:hover { color: var(--accent-hover); }
.mark { flex: none; }
.lang-switch { font-weight: 600; text-decoration: none; padding: 6px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; color: var(--ink); font-size: .95rem; }
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-light { background: var(--surface); color: var(--accent); }
.btn-light:hover { background: #fff; color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* Home: hero */
.hero { padding: 56px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); line-height: 1.1; margin-bottom: .45em; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 36ch; }
.hero-note { color: var(--muted); font-size: .95rem; margin-top: -4px; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 18px; background: var(--bg-2); box-shadow: var(--shadow); }

/* Home: city strip */
.cities-strip { padding: 8px 0 56px; }
.eyebrow { font-family: var(--font); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
html[lang="he"] .eyebrow { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.strip {
  list-style: none; margin: 0; padding: 4px max(20px, calc((100vw - 1080px) / 2)) 12px;
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.strip li { flex: 0 0 188px; scroll-snap-align: start; }
.strip-card { display: block; text-decoration: none; color: var(--ink); font-weight: 600; }
.strip-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--bg-2); margin-bottom: 8px; transition: transform .25s; }
.strip-card:hover img { transform: translateY(-3px); }
.strip-card:hover { color: var(--accent); }

/* Home: how it works */
.how { background: var(--surface); border-block: 1px solid var(--line); padding: 64px 0; }
.how h2 { font-size: 2rem; margin-bottom: 32px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.how-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px;
}
.how h3 { font-size: 1.3rem; }
.how p { color: var(--ink-2); margin: 0; }

/* Home: fee */
.fee { background: var(--accent); color: var(--accent-ink); padding: 64px 0; }
.fee-grid { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; max-width: 900px; }
.fee-figure { display: flex; flex-direction: column; align-items: center; }
.fee-big { font-family: var(--font-head); font-size: clamp(5rem, 11vw, 7.5rem); font-weight: 600; line-height: .9; }
.fee-compare { font-size: .95rem; opacity: .85; margin-top: 8px; }
.fee h2 { font-size: 2rem; }
.fee p { font-size: 1.15rem; margin: 0; max-width: 46ch; opacity: .95; }

/* Home: FAQ */
.faq { padding: 64px 0; }
.faq h2 { font-size: 2rem; margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.08rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 1.6rem; line-height: 1; color: var(--accent); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 6px; max-width: 60ch; }

.final-cta { background: var(--bg-2); padding: 56px 0; text-align: center; }
.final-title { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin-bottom: 20px; }
.final-cta .btn-light { background: var(--accent); color: var(--accent-ink); }
.final-cta .btn-light:hover { background: var(--accent-hover); color: var(--accent-ink); }

/* Plain text pages and messages */
.text-page { padding: 48px 0 64px; }
.text-page h1 { font-size: 2.3rem; }
.text-page h2 { font-size: 1.35rem; margin-top: 1.6em; }
.text-page p { color: var(--ink-2); }
.credits { padding: 0; list-style: none; }
.credits li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; overflow-wrap: anywhere; }
.message-page { padding: 72px 0 96px; text-align: center; }
.message-page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.message-page .lead { margin-inline: auto; }
.done-mark { color: var(--accent); display: flex; justify-content: center; margin-bottom: 18px; }

/* ---------------------------------------------------------------- Search form */
.form-page main { padding-bottom: 32px; }
.form-top { position: sticky; top: 0; z-index: 10; background: rgba(245, 241, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.progress-row { display: flex; justify-content: space-between; align-items: center; min-height: 40px; font-size: .92rem; color: var(--muted); font-weight: 600; }
.progress { height: 4px; background: var(--bg-2); border-radius: 4px; overflow: hidden; margin-bottom: -1px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.form-wrap { max-width: 860px; padding-top: 28px; }
.step { border: 0; padding: 0; margin: 0 0 48px; min-width: 0; }
.js .step { margin-bottom: 24px; }
.step legend { padding: 0; width: 100%; }
.step-title { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: .3em; }
.step-title:focus { outline: none; }
.js .step.entering { animation: step-in .22s ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hint { color: var(--muted); margin-bottom: 18px; }
.sub-title { font-family: var(--font); font-size: 1.05rem; font-weight: 700; margin: 26px 0 10px; }
.opt-tag { font-family: var(--font); font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--bg-2); padding: 2px 8px; border-radius: 6px; vertical-align: middle; margin-inline-start: 6px; letter-spacing: 0; }
.alert { background: var(--danger-soft); border: 1px solid #e7b9b2; color: var(--danger); padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.field-error { color: var(--danger); font-weight: 600; font-size: .93rem; margin: 8px 0 0; }
.field-error::before { content: "! "; }

/* City cards */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.city-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow);
  outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s, transform .15s;
}
.city-card:hover { transform: translateY(-2px); }
.city-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.city-img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--bg-2), #e2d8c6); display: block; }
.city-img img { width: 100%; height: 100%; object-fit: cover; }
.city-img-any { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.city-name { padding: 10px 12px 12px; font-weight: 700; line-height: 1.3; }
.city-name small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.tick {
  position: absolute; top: 10px; inset-inline-end: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 253, 249, .92); border: 1.5px solid rgba(30, 38, 34, .25);
}
.city-card:has(input:checked) { outline-color: var(--accent); outline-width: 3px; outline-offset: -3px; }
.city-card input:checked ~ .tick { background: var(--accent); border-color: var(--accent); }
.city-card input:checked ~ .tick::after, .chip input:checked + span::before {
  content: ""; display: block; width: 7px; height: 12px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg); margin: 5px auto 0;
}
.city-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Regions */
.regions { display: grid; gap: 10px; }
.region { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.region summary {
  list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; min-height: 52px;
}
.region summary::-webkit-details-marker { display: none; }
.region summary::after { content: ""; width: 9px; height: 9px; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-inline-start: auto; transition: transform .2s; }
.region[open] summary::after { transform: rotate(-135deg); }
.region-count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: .8rem; padding: 1px 9px; }
.region-count:empty { display: none; }
.region .chips { padding: 4px 18px 18px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-stack { flex-direction: column; align-items: stretch; max-width: 520px; }
.chips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 9px 16px; width: 100%;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); line-height: 1.3;
  transition: background-color .12s, border-color .12s;
}
.chips-stack .chip span, .chips-grid .chip span { border-radius: 12px; }
.chip:hover span { border-color: var(--ink-2); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); font-weight: 600; }
.chip input:checked + span::before { width: 6px; height: 11px; border-color: var(--accent); margin: -3px 2px 0; flex: none; }
.chip input[type="radio"]:checked + span::before { display: none; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.chip-strong span { font-weight: 700; }

.segmented { display: inline-flex; background: var(--bg-2); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.segmented.wrap-ok { flex-wrap: wrap; }
.segmented .chip span { border: 0; border-radius: 9px; background: transparent; min-height: 42px; }
.segmented .chip input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(30, 38, 34, .15); }

/* Inputs */
.field { margin-bottom: 18px; max-width: 520px; }
.field label, .label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type="text"], input:not([type]), input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 11px 14px; min-height: 48px;
  transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 90, 71, .18); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
::placeholder { color: #7d837e; }
.check-line { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; min-height: 44px; }
.check-line input { width: 22px; height: 22px; accent-color: var(--accent); }
.input-affix { position: relative; }
.affix { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--muted); pointer-events: none; }
.money-field input { font-size: 1.5rem; font-weight: 700; padding-inline-start: 42px; min-height: 60px; letter-spacing: .01em; }
.size-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.size-row .field { width: 160px; margin: 0; }
.size-row .segmented { margin: 0; }
.phone-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 8px; }
html[dir="rtl"] input[dir="ltr"] { text-align: end; }

/* Review */
.review { margin: 0 0 24px; border-top: 1px solid var(--line); }
.review div { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.review dt { color: var(--muted); font-weight: 700; font-size: .95rem; }
.review dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.review .link-btn { font-size: .92rem; color: var(--accent); }
.fee-notice { background: var(--accent-soft); border-inline-start: 4px solid var(--accent); padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; }
.fee-notice p { margin: 0; }
.submit-btn { margin-top: 8px; max-width: 520px; }

/* Bottom step navigation */
.step-nav { position: sticky; bottom: 0; z-index: 10; background: rgba(255, 253, 249, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.step-nav-row { display: flex; align-items: center; gap: 10px; min-height: 72px; max-width: 860px; }
.step-nav .spacer { flex: 1; }
.step-nav [data-next] { min-width: 140px; }
.saved-note { max-width: 860px; margin-top: 14px; }
html:not(.js) .js-only { display: none !important; }

.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 860px) {
  .hero { padding: 28px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 16 / 10; border-radius: 14px; }
  .how-steps { grid-template-columns: 1fr; gap: 28px; }
  .how, .fee, .faq { padding: 48px 0; }
  .fee-grid { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .fee p { margin-inline: auto; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .strip { padding-inline: 16px; }
  .strip li { flex-basis: 156px; }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .city-name { padding: 8px 10px 10px; font-size: .98rem; }
  .chips-grid { grid-template-columns: 1fr; }
  .review div { grid-template-columns: 1fr auto; }
  .review dt { grid-column: 1 / -1; margin-bottom: -6px; }
  .phone-row { grid-template-columns: minmax(0, 130px) minmax(0, 1fr); }
  .step-nav [data-next] { min-width: 120px; }
  .brand { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
