/* ברכת ינון יחיאל – עיצוב האתר */
:root {
  --paper: #FAF6EF;
  --paper-2: #F2EBDF;
  --ink: #10263A;
  --ink-2: #1B3A55;
  --ink-soft: #44596B;
  --sky: #E3EEF6;
  --accent: #B83B24;
  --accent-hover: #9C301C;
  --accent-light: #F2A48F;
  --line: #DDD3C3;
  --white: #FFFFFF;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 38, 58, .06), 0 12px 32px -12px rgba(16, 38, 58, .22);
  --font-display: "Rubik", "Assistant", "Arial Hebrew", Arial, sans-serif;
  --font-body: "Assistant", "Arial Hebrew", Arial, sans-serif;
  --wrap: 1160px;
  --a11y-scale: 1;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: calc(100% * var(--a11y-scale));
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 500; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--ink :focus-visible, .footer :focus-visible, .topbar :focus-visible { outline-color: var(--accent-light); }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* Top bar */
.topbar { background: var(--ink); color: #DCE5EE; font-size: .95rem; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: flex-end; padding-block: .45rem; }
.topbar__inner span { margin-inline-end: auto; }
.topbar a { color: #F4EFE6; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: var(--white); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.brand__tag { font-size: .92rem; color: var(--ink-soft); }

.nav__list { display: flex; gap: .25rem; list-style: none; }
.nav__list a {
  display: block;
  padding: .5rem .8rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.nav__list a:hover { background: var(--paper-2); color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
  border-radius: 999px;
  padding: .4rem .9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  content: "";
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lg { min-height: 56px; padding-inline: 1.6rem; font-size: 1.1rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--accent);
  margin-bottom: .6rem;
  letter-spacing: .02em;
}
.eyebrow--light { color: var(--accent-light); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -10%;
  top: -30%;
  width: 60%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(227, 238, 246, .95), rgba(227, 238, 246, 0));
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.hl { color: var(--accent); }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-block: 1.6rem 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.chips li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-2);
}

.ticket {
  background: var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
  transform: rotate(-1.5deg);
  position: relative;
}
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--paper);
  border-radius: 50%;
  bottom: 74px;
}
.ticket::before { inset-inline-start: -13px; }
.ticket::after { inset-inline-end: -13px; }
.ticket__head { display: flex; justify-content: space-between; align-items: center; padding: .1rem .3rem .8rem; }
.ticket__label { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.ticket__dots { display: flex; gap: 5px; }
.ticket__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.ticket__dots i:first-child { background: var(--accent); }
.ticket__map { display: block; width: 100%; height: auto; border-radius: 18px; }
.ticket__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem .4rem .3rem;
  margin-top: 1.1rem;
  border-top: 2px dashed var(--line);
}
.ticket__k { display: block; font-size: .85rem; color: var(--ink-soft); }
.ticket__v { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.ticket__arrow { font-size: 1.6rem; color: var(--accent); }

.route { animation: dash 14s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -280; } }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--sky { background: var(--sky); }
.section--ink { background: var(--ink); color: #E7EDF3; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section__head { max-width: 640px; margin-bottom: 2.5rem; }
.section__sub { color: var(--ink-soft); font-size: 1.15rem; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; list-style: none; }
.service {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  padding-inline-start: 1.9rem;
}
.service::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 6px;
  background: var(--accent);
}
.service h3 { margin-bottom: .35rem; }
.service p { margin: 0; color: var(--ink-soft); }
.service__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--sky);
  color: var(--ink);
}
.service__icon svg { width: 30px; height: 30px; }

.route-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  counter-reset: none;
}
.route-steps::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 8%;
  border-top: 3px dashed var(--ink);
  opacity: .35;
}
.route-step { position: relative; background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.4rem 1.3rem; box-shadow: var(--shadow); margin-top: 0; }
.route-step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin: -3.3rem 0 1rem;
  border: 5px solid var(--sky);
}
.route-step p { margin: 0; color: var(--ink-soft); }
.route-step a { overflow-wrap: anywhere; }

.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.values { list-style: none; display: grid; gap: .9rem; margin-top: 1.5rem; }
.values li { display: flex; gap: .8rem; align-items: flex-start; }
.values svg { width: 26px; height: 26px; flex: none; color: var(--accent); margin-top: .2rem; }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2rem); }
.details { position: relative; overflow: hidden; padding-top: calc(clamp(1.4rem, 3vw, 2rem) + 6px); }
.details::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px; background: var(--ink); }
.details dl { margin: 0; display: grid; gap: .8rem; }
.details dl > div { display: grid; gap: .1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--paper-2); }
.details dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.details dt { font-size: .9rem; color: var(--ink-soft); }
.details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info p { color: #D3DEE8; font-size: 1.15rem; }
.contact__list { list-style: none; display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.contact__list li { display: grid; gap: .1rem; padding: 1rem 1.2rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-sm); }
.contact__k { font-size: .9rem; color: #B9C6D2; }
.contact__v { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
a.contact__v:hover { color: var(--accent-light); text-decoration: underline; }

.form { color: var(--ink); }
.form h3, .section--ink .form h3 { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.form__note { font-size: .95rem; color: var(--ink-soft); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.req { color: var(--accent); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid #9AA8B4;
  border-radius: var(--radius-sm);
  padding: .65rem .8rem;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--accent); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.field input[dir="ltr"] { text-align: right; }
.field__error { color: var(--accent); font-weight: 600; font-size: .95rem; margin: .3rem 0 0; min-height: 0; }
.field__error:empty { display: none; }
.form__status { margin: .8rem 0 0; font-weight: 600; }
.form__status:empty { display: none; }

/* Footer */
.footer { background: #0B1C2B; color: #C9D4DE; padding-top: 3rem; font-size: 1rem; }
.footer a { color: #F4EFE6; }
.footer a:hover { color: var(--accent-light); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 2rem; padding-bottom: 2rem; }
.footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--white); margin-bottom: .3rem; }
.footer__muted { color: #AFC0CF; }
.footer__links { list-style: none; display: grid; gap: .45rem; }
.footer__legal p { margin: 0 0 .35rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.1rem; font-size: .92rem; color: #AFC0CF; }
.footer__bottom p { margin: 0; }

/* Inner pages */
.page-hero { background: var(--sky); padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid #CFDDE8; }
.page-hero p { color: var(--ink-soft); margin: 0; }
.prose { max-width: 760px; padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose h2 { font-size: 1.55rem; margin-top: 2.2rem; }
.prose ul { padding-inline-start: 1.3rem; margin-bottom: 1em; }
.prose li { margin-bottom: .4rem; }
.prose .card { margin-top: 1rem; }
.prose dl { margin: 0; display: grid; gap: .6rem; }
.prose dl > div { display: flex; flex-wrap: wrap; gap: .2rem .6rem; }
.prose dt { font-weight: 700; }
.prose dt::after { content: ":"; }
.prose dd { margin: 0; overflow-wrap: anywhere; }
.updated { font-size: .95rem; color: var(--ink-soft); }

/* Accessibility widget */
.a11y-btn {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 999px;
  padding: .55rem 1rem .55rem .9rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.a11y-btn svg { width: 24px; height: 24px; }
.a11y-btn:hover { background: var(--ink-2); }
.a11y-panel {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 4.6rem;
  z-index: 61;
  width: min(330px, calc(100vw - 2rem));
  max-height: calc(100vh - 6rem);
  overflow: auto;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -10px rgba(16, 38, 58, .45);
  border: 1px solid var(--line);
  padding: 1.1rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1.2rem; margin: 0 0 .8rem; }
.a11y-panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-opt {
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-align: start;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .55rem .65rem;
  cursor: pointer;
  min-height: 44px;
}
.a11y-opt:hover { border-color: var(--ink); }
.a11y-opt[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.a11y-panel__foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.a11y-panel__foot a { font-weight: 600; }
.a11y-reset { font: inherit; font-weight: 600; background: transparent; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: .3rem; }
.a11y-close {
  position: absolute;
  inset-inline-end: .6rem;
  top: .6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Accessibility modes */
html.a11y-contrast body { background: #FFFFFF; color: #000000; }
html.a11y-contrast { --paper: #FFFFFF; --paper-2: #F0F0F0; --ink: #000000; --ink-2: #000000; --ink-soft: #1A1A1A; --sky: #FFFFFF; --accent: #8A1C0A; --accent-hover: #5C1206; --line: #000000; }
html.a11y-contrast .section--ink, html.a11y-contrast .footer, html.a11y-contrast .topbar { background: #000000; color: #FFFFFF; }
html.a11y-contrast .section--ink p, html.a11y-contrast .contact__k, html.a11y-contrast .footer__muted, html.a11y-contrast .footer__bottom { color: #FFFFFF; }
html.a11y-contrast .service, html.a11y-contrast .card, html.a11y-contrast .route-step, html.a11y-contrast .chips li { border: 2px solid #000000; box-shadow: none; }
html.a11y-contrast .hero::before { display: none; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: #FFF3A8; color: #000000 !important; }
html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font .btn, html.a11y-font .brand__name, html.a11y-font .eyebrow { font-family: Arial, "Arial Hebrew", sans-serif !important; }
html.a11y-spacing body { letter-spacing: .06em; word-spacing: .12em; line-height: 2; }
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

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

/* Responsive */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -18px rgba(16, 38, 58, .4);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding: .6rem 1rem 1rem; }
  .nav__list a { border-radius: var(--radius-sm); padding: .8rem 1rem; }
  .header__inner { position: relative; }
  .header__call span { display: none; }
  .header__call { padding-inline: .9rem; }
  .nav.nav--inline { position: static; display: block; background: transparent; border: 0; box-shadow: none; }
  .nav--inline .nav__list { flex-direction: row; padding: 0; }
  .nav--inline .nav__list a { padding: .45rem .7rem; border-radius: 999px; }
}

@media (max-width: 860px) {
  .hero__grid, .about, .contact { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; }
  .services { grid-template-columns: 1fr; }
  .route-steps { grid-template-columns: 1fr; gap: 3rem; }
  .route-steps::before { top: 0; bottom: 0; inset-inline: auto; inset-inline-start: 28px; border-top: 0; border-inline-start: 3px dashed var(--ink); }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .topbar__inner { justify-content: flex-start; }
  .topbar__inner span { display: none; }
  .header__inner { gap: .7rem; }
  .brand { gap: .55rem; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.1rem; white-space: nowrap; }
  .brand__tag { font-size: .85rem; }
  .nav-toggle { padding: .55rem .7rem; }
  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .hero__actions .btn { width: 100%; }
  .service { flex-direction: column; }
  .a11y-panel__grid { grid-template-columns: 1fr; }
  .nav--inline .nav__list a { padding: .4rem .45rem; font-size: .95rem; }
  .nav--inline .nav__list { gap: 0; }
}

@media print {
  .topbar, .header, .a11y-btn, .a11y-panel, .hero__art, .form { display: none !important; }
  body { background: #FFFFFF; }
}
