/* בית דוד landing page. Every value comes from tokens.css (see DESIGN.md). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- type ---------- */
h1, .h2, .h2-l, .h3, .h4, .title, .subtitle, .eyebrow, .advantage h3, .footer__name, .footer__h, .logo__name, label, legend, .body-l-bold, .memorial__price, .fact dd {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: 80px; line-height: 76px; }
.h2 { font-size: 70px; line-height: 69px; }
.h2-l { font-size: 80px; line-height: 70px; }
.h3 { font-size: 58px; line-height: 60px; }
.h4 { font-size: 46px; line-height: 46px; }
.title { font-size: 27px; line-height: 32px; }
.subtitle { font-size: 20px; line-height: 24px; }
.eyebrow { font-size: 20px; line-height: 24px; color: var(--ornament-text); }
.lead { font-family: var(--font-lead); font-weight: 300; font-size: 32px; line-height: 37px; color: var(--text-body); }
.body-l { font-size: 24px; line-height: 31px; }
.body-l-bold { font-size: 24px; line-height: 31px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.phone-link { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ornament); text-underline-offset: 4px; transition: color var(--duration) ease; }
.phone-link:hover { color: var(--ornament-text); }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-15); }

/* ---------- icons ---------- */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--fill { fill: currentColor; stroke: none; }
.ic--s { width: 20px; height: 20px; }
.ic--xs { width: 16px; height: 16px; stroke-width: 2.5; }
.ic--feature { width: 40px; height: 40px; color: var(--ornament-text); }
.ic--success { width: 48px; height: 48px; color: var(--ornament-text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-6);
  border-radius: var(--radius-pill);
  border: var(--hairline) solid transparent;
  font-family: var(--font-body); font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--duration) ease, color var(--duration) ease;
}
.btn:focus-visible, .icon-btn:focus-visible, .pill input:focus-visible + span, .nav a:focus-visible, .link-btn:focus-visible, .check input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--text-on-dark); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--secondary { background: transparent; border-color: var(--ornament); color: var(--text); }
.btn--secondary:hover { background: var(--bg-warm); }
.btn--on-dark { background: transparent; border-color: var(--ornament); color: var(--text-on-dark); }
.btn--on-dark:hover { background: var(--accent-hover); }
.btn--on-dark:focus-visible { outline-color: var(--text-on-dark); }
.btn--s { height: 44px; padding-inline: 20px; font-size: 16px; }
.btn--m { height: 48px; padding-inline: 27px; font-size: 18px; }
.btn--l { width: 250px; height: 78px; font-family: var(--font-cta); font-weight: 400; font-size: 22px; }
.btn--block { width: 100%; height: 58px; font-family: var(--font-cta); font-weight: 400; font-size: 22px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: var(--hairline) solid var(--line); background: var(--bg);
  color: var(--ornament-text); transition: border-color var(--duration) ease;
}
.icon-btn:hover { border-color: var(--ornament); }
.icon-btn .ic { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; text-decoration-color: var(--ornament); text-underline-offset: 4px; cursor: pointer; font-size: 20px; }

.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--text-on-dark); padding: 11px 20px; border-radius: var(--radius-pill); }
.skip-link:focus { top: 16px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 27px; left: 50%; transform: translateX(-50%);
  width: min(1009px, 100% - 32px); height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-20);
  padding: 10px 20px; background: var(--bg); border: var(--hairline) solid var(--line); border-radius: var(--radius-capsule);
}
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo__small { font-size: 14px; color: var(--text-body); }
.logo__name { font-size: 27px; line-height: 28px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 16px; color: var(--text); text-decoration: none; transition: color var(--duration) ease; }
.nav__links a:hover { color: var(--ornament-text); text-decoration: underline; text-decoration-color: var(--ornament); text-underline-offset: 6px; }
.nav__actions { display: flex; align-items: center; gap: var(--space-15); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--text); cursor: pointer; place-items: center; }

.mobile-menu { position: fixed; inset: 0; z-index: 40; background: var(--bg); padding: 104px 16px 40px; display: flex; flex-direction: column; gap: var(--space-27); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav a { display: flex; align-items: center; height: 64px; border-top: var(--hairline) solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 27px; color: var(--text); text-decoration: none; }
.mobile-menu__contact { display: flex; justify-content: center; align-items: center; gap: var(--space-15); font-size: 22px; }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-27); padding: 170px 16px var(--section-y); }
.hero__head { display: flex; flex-direction: column; gap: var(--space-11); }
.hero .lead { max-width: 900px; }
.facts { display: flex; align-items: center; }
.fact { width: 260px; display: flex; flex-direction: column; gap: var(--space-6); }
.fact + .fact { border-inline-start: var(--hairline) solid var(--line); }
.fact dt { font-size: 20px; }
.fact dd { font-size: 46px; line-height: 46px; }
.includes { font-size: 20px; }
.hero .btn--l { margin-top: var(--space-11); }
.call-line { color: var(--text); }
.media { border-radius: var(--radius-card); overflow: hidden; background: var(--bg-neutral); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media { width: min(var(--container), 100%); margin-top: var(--space-27); aspect-ratio: 1100 / 560; }

/* ---------- why ---------- */
.why { border-top: var(--hairline) solid var(--line); display: flex; flex-direction: column; align-items: center; gap: var(--space-88); padding-inline: 16px; }
.advantages { width: min(var(--container), 100%); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-20); }
.advantage { border-top: var(--hairline) solid var(--line); padding-top: var(--space-27); display: flex; flex-direction: column; gap: var(--space-11); }
.advantage .ic--feature { margin-bottom: var(--space-11); }
.advantage h3 { font-size: 27px; line-height: 32px; }
.advantage p { font-size: 20px; line-height: 26px; }

/* ---------- hall ---------- */
.hall { padding-top: 0; }
.hall .h3 { margin-bottom: var(--space-15); }
.bento { margin-top: var(--space-53); display: grid; grid-template-columns: 640fr 440fr; grid-template-rows: 200px 200px; gap: var(--space-20); }
.bento__main { grid-row: span 2; }

/* ---------- contact ---------- */
.contact { background: var(--bg-warm); }
.contact__grid { display: grid; grid-template-columns: 540px 460px; justify-content: space-between; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: var(--space-20); }
.contact__info .h4 { margin-top: -6px; }
.steps { margin-top: var(--space-11); }
.steps li { display: flex; align-items: center; gap: var(--space-15); padding-block: var(--space-15); border-top: var(--hairline) solid var(--line); font-size: 24px; line-height: 31px; }
.steps__n { font-family: var(--font-display); font-weight: 700; font-size: 27px; color: var(--ornament-text); }
.talk, .location { display: flex; flex-direction: column; gap: var(--space-11); margin-top: var(--space-20); }
.talk .row { margin-top: var(--space-6); }
.map { border-radius: var(--radius-card); overflow: hidden; height: 260px; background: var(--bg-neutral); }
.map iframe { width: 100%; height: 100%; border: 0; }
.location .body-l-bold { display: flex; align-items: center; gap: var(--space-6); }
.location .body-l-bold .ic { color: var(--ornament-text); }

/* form */
.form { display: flex; flex-direction: column; gap: var(--space-20); }
.field { display: flex; flex-direction: column; gap: var(--space-6); }
label, legend { font-size: 17px; line-height: 22px; }
legend { margin-bottom: var(--space-11); }
.field input[type="text"], .field input[type="tel"], .field input[type="date"] {
  height: 45px; width: 100%; padding: 0; border: 0; border-bottom: var(--hairline) solid var(--text-body); border-radius: 0;
  background: transparent; font: 400 20px/1 var(--font-body); color: var(--text-body); text-align: right;
  transition: border-color var(--duration) ease;
}
.field input:focus { outline: none; border-bottom: 1.6px solid var(--accent); }
.field input[aria-invalid="true"] { border-bottom: 1.6px solid var(--accent); }
.field input:disabled { border-bottom-color: var(--text-muted); color: var(--text-muted); }
.field__help { font-size: 17px; line-height: 22px; }
.field__error { display: flex; align-items: flex-start; gap: var(--space-6); font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 22px; color: var(--text); }
.field__error[hidden] { display: none; }
.field__error .ic { width: 18px; height: 18px; margin-top: 2px; }

.pills { display: flex; gap: var(--space-11); }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-6);
  width: 146px; height: 44px; border-radius: var(--radius-pill); border: var(--hairline) solid var(--control-border);
  font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text);
  transition: background-color var(--duration) ease, color var(--duration) ease;
}
.pill span .ic { display: none; }
.pill:hover span { border-color: var(--ornament); }
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--text-on-dark); }
.pill input:checked + span .ic { display: block; }
fieldset[aria-invalid="true"] .pill span { border-width: 1.6px; }

.check { display: inline-flex; align-items: center; gap: var(--space-11); min-height: 44px; font: 400 17px/1 var(--font-body); color: var(--text-body); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }

.btn--submit { width: 100%; height: 53px; border-radius: 40px; font-size: 22px; margin-top: var(--space-11); }
.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--text-on-dark-soft); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.btn--submit[aria-busy="true"] .spinner { display: inline-block; }
.btn--submit[aria-busy="true"] { cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__note { font-size: 18px; line-height: 24px; }
.form__summary { display: flex; align-items: center; gap: var(--space-6); font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text); }
.form__summary[hidden], .form__failure[hidden] { display: none; }
.form__failure { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-15); padding: var(--space-27); background: var(--bg); border: var(--hairline) solid var(--line); border-radius: var(--radius-card); color: var(--text); }

.success { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-15); padding: 40px; background: var(--bg); border: var(--hairline) solid var(--line); border-radius: var(--radius-card); }
.success[hidden] { display: none; }
.success:focus { outline: none; }

/* ---------- donate ---------- */
.donate { padding-top: 0; }
.rule-gold { border: 0; border-top: 1px solid var(--ornament); margin: 0 0 var(--space-100); }
.donate__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-20); margin-bottom: var(--space-88); }
.donate .title { margin-bottom: var(--space-15); }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-15) var(--space-20); }
.chips li { display: flex; align-items: center; gap: var(--space-15); min-height: 64px; padding: var(--space-15) var(--space-27); background: var(--bg-neutral); border-radius: var(--radius-pill); color: var(--text); font-size: 20px; line-height: 26px; }
.chips li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ornament); flex: none; }
.chips__more { margin-top: var(--space-15); }
.memorial, .quote { margin-top: var(--space-20); border-radius: var(--radius-card); padding: 70px; display: flex; flex-direction: column; gap: var(--space-20); }
.memorial { margin-top: var(--space-53); background: var(--accent); color: var(--text-on-dark-soft); align-items: flex-start; }
.memorial .h4 { color: var(--text-on-dark); }
.memorial__price { font-size: 46px; line-height: 46px; color: var(--ornament); }
.memorial p:not(.memorial__price) { font-size: 24px; line-height: 31px; }
.quote { background: var(--bg-warm); align-items: center; text-align: center; gap: 24px; }
.quote blockquote { font-family: var(--font-lead); font-weight: 300; font-size: 45px; line-height: 50px; color: var(--text); }
.rule-short { width: 80px; border: 0; border-top: 1px solid var(--ornament); margin: 0; }

/* ---------- footer ---------- */
.footer { background: var(--accent); color: var(--text-on-dark-soft); padding: 50px 0 33px; }
.footer__cols { display: grid; grid-template-columns: 340px repeat(3, 220px); justify-content: space-between; }
.footer__name { font-size: 27px; color: var(--text-on-dark); margin-bottom: var(--space-11); }
.footer__h { font-size: 20px; color: var(--text-on-dark); margin-bottom: var(--space-11); }
.footer li { font-size: 18px; line-height: 34px; }
.footer a { text-decoration: none; transition: color var(--duration) ease; }
.footer a:hover { color: var(--text-on-dark); text-decoration: underline; text-decoration-color: var(--ornament); }
.footer a:focus-visible { outline: 2px solid var(--text-on-dark); outline-offset: 2px; }
.footer__bottom { margin-top: 40px; padding-top: var(--space-20); border-top: var(--hairline) solid var(--line); font-size: 14px; font-weight: 500; }

.sticky-bar { display: none; }

/* ---------- accessibility statement page ---------- */
.doc-header { border-bottom: var(--hairline) solid var(--line); }
.doc-header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-20); }
.doc { max-width: 800px; padding-block: var(--space-53) var(--space-100); display: flex; flex-direction: column; gap: var(--space-20); }
.doc h1 { margin-bottom: var(--space-11); }
.doc .title { margin-top: var(--space-33); }
.doc p, .doc-list li { font-size: 20px; line-height: 31px; }
.doc-list { display: flex; flex-direction: column; gap: var(--space-11); }
.doc-list li { position: relative; padding-inline-start: var(--space-20); }
.doc-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--ornament); }
.doc kbd { font-family: var(--font-body); font-size: 17px; padding: 0 var(--space-6); border: var(--hairline) solid var(--text-body); border-radius: var(--radius-check); color: var(--text); }
.doc-contact { display: flex; flex-direction: column; gap: var(--space-11); padding: var(--space-27); background: var(--bg-warm); border-radius: var(--radius-card); }
.doc-contact div { display: flex; flex-wrap: wrap; column-gap: var(--space-15); font-size: 20px; }
.doc-contact dd { min-width: 0; overflow-wrap: anywhere; }
.doc-contact dt { font-family: var(--font-display); font-weight: 700; color: var(--text); min-width: 120px; }
.doc-credit { margin-top: var(--space-33); color: var(--text-body); }
.doc-credit, .doc .doc-credit { font-size: 17px; }
.footer--slim .footer__bottom { margin-top: 0; border-top: 0; padding-top: 0; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  h1 { font-size: 64px; line-height: 62px; }
  .h2, .h2-l { font-size: 56px; line-height: 56px; }
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .advantages { grid-template-columns: 1fr 1fr; row-gap: var(--space-33); }
  .contact__grid { grid-template-columns: 1fr; gap: var(--space-53); }
  .contact__form { order: -1; max-width: 460px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--space-33); }
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  html { scroll-padding-top: 88px; }
  body { font-size: 18px; padding-bottom: 72px; }
  .nav { top: 16px; height: 56px; padding: 0 20px 0 6px; }
  .nav__actions { display: none; }
  .nav__toggle { display: grid; }
  .logo__name { font-size: 27px; line-height: 30px; }

  h1 { font-size: 48px; line-height: 48px; }
  .h2, .h2-l { font-size: 36px; line-height: 38px; }
  .h3 { font-size: 36px; line-height: 38px; }
  .h4 { font-size: 27px; line-height: 30px; }
  .lead { font-size: 20px; line-height: 26px; }
  .body-l, .steps li, .memorial p:not(.memorial__price) { font-size: 18px; line-height: 24px; }
  .title, .advantage h3 { font-size: 21px; line-height: 26px; }

  .hero { padding-top: 100px; gap: var(--space-20); }
  .facts { width: 100%; }
  .fact { flex: 1; width: auto; }
  .fact dt { font-size: 17px; }
  .fact dd { font-size: 36px; line-height: 36px; }
  .includes { font-size: 17px; }
  .hero .btn--l { width: 100%; height: 58px; }
  .hero__media { aspect-ratio: 343 / 240; margin-top: var(--space-6); }

  .why { gap: var(--space-27); }
  .advantages { grid-template-columns: 1fr; gap: 0; }
  .advantage { display: grid; grid-template-columns: 32px 1fr; column-gap: var(--space-15); row-gap: 4px; padding-block: var(--space-20); }
  .advantage .ic--feature { width: 32px; height: 32px; grid-row: span 2; margin: 0; }
  .advantage p { font-size: 18px; line-height: 24px; }

  .bento { margin-top: var(--space-20); grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: var(--space-11); }
  .bento__main { grid-column: span 2; grid-row: auto; aspect-ratio: 343 / 240; }
  .bento .media:not(.bento__main) { aspect-ratio: 166 / 120; }

  .contact__form { max-width: none; order: 0; }
  .contact__grid { gap: var(--space-33); }
  .contact__info { display: contents; }
  .contact__info > .h2-l, .contact__info > .h4, .contact__info > .steps { order: -2; }
  .contact__form { order: -1; }
  .talk, .location { order: 0; }
  .contact__info .h4 { margin-top: 0; }
  .contact__info br { display: none; }
  .row .btn { flex: 1; padding-inline: var(--space-11); }
  .map { height: 200px; }
  .pills { gap: var(--space-11); }
  .pill { flex: 1; }
  .pill span { width: 100%; }

  .rule-gold { margin-bottom: 50px; }
  .donate__head { margin-bottom: var(--space-33); }
  .donate__head br { display: none; }
  .chips { grid-template-columns: 1fr; gap: var(--space-11); }
  .chips li { min-height: 56px; font-size: 18px; padding-inline: var(--space-20); }
  .memorial, .quote { padding: var(--space-27); }
  .memorial__price { font-size: 36px; line-height: 36px; }
  .memorial .btn, .quote .btn { width: 100%; height: 53px; font-size: 18px; }
  .quote blockquote { font-size: 27px; line-height: 32px; }

  .footer__cols { grid-template-columns: 1fr; }

  .sticky-bar {
    display: flex; gap: var(--space-11); position: fixed; z-index: 30; inset-inline: 0; bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: var(--hairline) solid var(--line);
    transform: translateY(100%); transition: transform var(--duration) ease;
  }
  .sticky-bar .btn { flex: 1; }
  .sticky-bar.is-visible { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: 0s !important; }
}

/* Spam trap: hidden from people, filled by bots. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
