/* נוטריון שי הראל – ערכים לפי DESIGN.md */
:root {
  --paper: #F6F6F2;
  --paper-deep: #ECECE5;
  --ink: #1B2238;
  --ink-soft: #4A5068;
  --rule: #D5D6CE;
  --stamp: #3A3F9A;
  --seal: #9B1B30;

  --font-display: "David Libre", "David", serif;
  --font-body: "IBM Plex Sans Hebrew", "Arial Hebrew", sans-serif;

  --fs-sm: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.3125rem;
  --fs-h3: 1.625rem;
  --fs-h2: 2.0625rem;
  --fs-h1: 3.25rem;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 72px; --s8: 112px;
  --content: 1120px;
  --measure: 68ch;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.2; margin-bottom: var(--s4); }
h3 { font-size: var(--fs-h3); line-height: 1.3; margin-bottom: var(--s2); }
p { margin: 0 0 var(--s3); max-width: var(--measure); }
a { color: var(--stamp); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; }

.wrap { max-width: var(--content); margin-inline: auto; padding-inline: var(--s4); }

.skip { position: absolute; inset-inline-start: var(--s3); top: -100px; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s3); z-index: 10; }
.skip:focus { top: var(--s3); }

/* כותרת עליונה */
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: var(--s5); min-height: 76px; }
.wordmark { display: flex; align-items: baseline; gap: var(--s2); color: var(--ink); text-decoration: none; }
.wordmark-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.wordmark-role { font-size: var(--fs-sm); color: var(--ink-soft); }
.nav { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--stamp); text-decoration: underline; }

/* כפתורים */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s4);
  border-radius: var(--radius); border: 1.5px solid var(--ink);
  font: 500 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2A3352; border-color: #2A3352; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--paper-deep); }
.icon { width: 20px; height: 20px; flex: none; }
.link-quiet { color: var(--ink); font-weight: 500; }

/* הגיבור: עברית מימין, רומנית משמאל, החותמת על התפר */
.hero { padding-block: var(--s7) var(--s8); }
.folio {
  display: grid;
  grid-template-columns: 1.35fr auto 1fr;
  align-items: center;
  gap: var(--s5);
}
.folio-he h1 { max-width: 17ch; }
.lede { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-soft); margin-top: var(--s4); max-width: 34ch; }
.seam { position: relative; align-self: stretch; display: grid; place-items: center; width: 220px; }
.seam::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 50%;
  border-inline-start: 1px solid var(--rule);
}
.seal {
  position: relative; display: block; width: 220px; height: auto;
  background: var(--paper); border-radius: 50%;
  transform: rotate(-8deg);
  animation: stamp 420ms cubic-bezier(.2,.9,.3,1.2) 300ms both;
}
@keyframes stamp {
  from { opacity: 0; transform: rotate(-8deg) scale(1.35); }
  to   { opacity: 1; transform: rotate(-8deg) scale(1); }
}
.folio-ro { text-align: left; color: var(--ink-soft); }
.ro-title { font-family: var(--font-display); font-size: 1.85rem; line-height: 1.2; color: var(--ink); font-style: italic; font-weight: 500; margin-bottom: var(--s3); }
.ro-lede { font-size: 1.05rem; line-height: 1.6; }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-note { margin-top: var(--s3); color: var(--ink-soft); font-size: var(--fs-sm); }

/* קטעים */
.section { padding-block: var(--s8); border-top: 1px solid var(--rule); }
.two-col { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s6); align-items: start; }
.col-intro p { color: var(--ink-soft); }

/* רשימת מסמכים: תוכן עניינים */
.doc-index { margin: 0; }
.doc-row {
  display: grid; grid-template-columns: minmax(12rem, 1fr) 1.3fr; gap: var(--s4);
  padding-block: var(--s3); border-bottom: 1px solid var(--rule);
}
.doc-row:first-child { border-top: 1px solid var(--ink); }
.doc-index dt { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.35; }
.doc-index dt a { color: var(--ink); text-decoration: none; }
.doc-index dt a:hover { color: var(--stamp); text-decoration: underline; }
.doc-index dd { margin: 0; color: var(--ink-soft); }

/* שלבים */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--rule);
  margin-bottom: var(--s3);
}
.in-person {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; color: var(--seal);
  vertical-align: middle; margin-inline-start: var(--s2);
}
.in-person::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--seal); }

.plain-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s6); }
.plain-list li { padding-block: var(--s2); border-bottom: 1px solid var(--rule); break-inside: avoid; }

.section-visit { background: var(--paper-deep); border-top: 0; }
.visit p { font-size: var(--fs-lead); line-height: 1.55; }

.about { display: grid; grid-template-columns: 300px 1fr; gap: var(--s6); align-items: start; }
.photo-slot { margin: 0; }
.photo-placeholder {
  aspect-ratio: 4 / 5; display: grid; place-items: center;
  border: 1px dashed var(--ink-soft); color: var(--ink-soft); font-size: var(--fs-sm);
}
.placeholder { color: var(--seal); font-size: var(--fs-sm); }
address { font-style: normal; font-size: var(--fs-lead); line-height: 1.6; }

.site-footer { border-top: 1px solid var(--ink); padding-block: var(--s5) var(--s7); font-size: var(--fs-sm); color: var(--ink-soft); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); }
.footer-links { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; }

.mobile-bar { display: none; }

/* טאבלט */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-cta { margin-inline-start: auto; }
  .folio { grid-template-columns: 1fr; gap: var(--s4); }
  .seam { width: 100%; height: 164px; }
  .seam::before { inset-block: 50% auto; inset-inline: 0; border-inline-start: 0; border-top: 1px solid var(--rule); }
  .seal { width: 156px; height: auto; }
  .two-col, .about { grid-template-columns: 1fr; gap: var(--s4); }
  .about .photo-slot { max-width: 260px; }
  .steps { grid-template-columns: 1fr; gap: var(--s5); }
}

/* טלפון */
@media (max-width: 600px) {
  :root { --fs-h1: 2.375rem; --fs-h2: 1.75rem; --fs-lead: 1.15rem; }
  .wrap { padding-inline: var(--s3); }
  .hero { padding-block: var(--s6) var(--s7); }
  .section { padding-block: var(--s7); }
  .header-cta { display: none; }
  .doc-row { grid-template-columns: 1fr; gap: var(--s1); }
  .plain-list { columns: 1; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  body { padding-bottom: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; inset-inline: 0; bottom: 0; z-index: 5;
    background: var(--ink); border-top: 1px solid var(--ink);
  }
  .mobile-bar a {
    display: grid; place-items: center; min-height: 56px;
    color: var(--paper); text-decoration: none; font-weight: 500;
  }
  .mobile-bar a + a { border-inline-start: 1px solid #39425f; }
}

@media (prefers-reduced-motion: reduce) {
  .seal { animation: none; }
}

/* דפים פנימיים */
.page-head { padding-block: var(--s7) var(--s6); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: var(--fs-h2); line-height: 1.15; max-width: 22ch; }
.page-head .lede { margin-top: var(--s3); max-width: 46ch; }
.crumbs { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--s3); }
.crumbs a { color: var(--ink-soft); }
.page-body { padding-block: var(--s6) var(--s8); }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--fs-h3); margin: var(--s6) 0 var(--s3); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-inline-start: 1.25em; margin: 0 0 var(--s3); }
.prose li { margin-bottom: var(--s2); }
.prose .note { border-inline-start: 3px solid var(--seal); padding-inline-start: var(--s3); color: var(--ink-soft); }
.page-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.faq details { border-bottom: 1px solid var(--rule); padding-block: var(--s3); }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { margin-top: var(--s2); color: var(--ink-soft); }
.service { padding-block: var(--s5); border-bottom: 1px solid var(--rule); scroll-margin-top: var(--s4); }
.service:first-child { padding-top: 0; }
.service h2 { font-size: var(--fs-h3); margin-bottom: var(--s2); }
.service p { margin-bottom: var(--s2); }
.related { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--ink); }
.related h2 { font-size: var(--fs-lead); margin-bottom: var(--s2); }
.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.booking-frame { min-height: 520px; border: 1px dashed var(--ink-soft); display: grid; place-items: center; color: var(--ink-soft); text-align: center; padding: var(--s4); }
.nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav-ro { display: flex; }
@media (max-width: 600px) {
  .mobile-bar-2 { grid-template-columns: repeat(2, 1fr); }
}
.head-seal { display: grid; grid-template-columns: 1fr auto; gap: var(--s6); align-items: center; }
.head-seal .seal { transform: rotate(6deg); animation-name: stamp-r; }
@keyframes stamp-r {
  from { opacity: 0; transform: rotate(6deg) scale(1.35); }
  to   { opacity: 1; transform: rotate(6deg) scale(1); }
}
@media (min-width: 961px) {
  .page-body.two-col > nav { position: sticky; top: var(--s4); }
}
@media (max-width: 600px) {
  .head-seal { grid-template-columns: 1fr; gap: var(--s3); }
  .head-seal .seal { width: 132px; justify-self: end; }
}

/* יומן קביעת פגישות */
.booking { max-width: 720px; }
.bk-step { font-size: var(--fs-lead); margin: 0 0 var(--s3); }
.bk-days, .bk-times { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.bk-day, .bk-time {
  min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--rule); border-radius: var(--radius);
  background: transparent; color: var(--ink); font: 500 0.95rem/1 var(--font-body); cursor: pointer;
}
.bk-time { min-width: 76px; font-variant-numeric: tabular-nums; }
.bk-day:hover, .bk-time:hover { border-color: var(--ink); }
.bk-day[aria-pressed="true"], .bk-time[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bk-form { border-top: 1px solid var(--ink); padding-top: var(--s4); }
.bk-chosen-line { font-size: var(--fs-lead); }
.field { margin-bottom: var(--s4); max-width: 420px; }
.field label { display: block; font-weight: 500; margin-bottom: var(--s1); }
.field .optional { font-weight: 400; color: var(--ink-soft); font-size: var(--fs-sm); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s2) var(--s3); border: 1px solid var(--ink-soft);
  border-radius: var(--radius); background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--font-body);
}
.field input[dir="ltr"] { text-align: right; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-status { margin-top: var(--s4); min-height: 1.7em; }
.bk-status[data-kind="ok"] { font-size: var(--fs-lead); border-inline-start: 3px solid var(--ink); padding-inline-start: var(--s3); }
.bk-status[data-kind="warn"] { color: var(--seal); }
.bk-submit:disabled { opacity: 0.45; cursor: default; }

/* תפריט נגישות */
.a11y-toggle {
  position: fixed; inset-inline-end: var(--s3); bottom: var(--s3); z-index: 20;
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s3); border: 1.5px solid var(--ink); border-radius: 24px;
  background: var(--paper); color: var(--ink); font: 500 0.95rem/1 var(--font-body); cursor: pointer;
}
.a11y-toggle svg { width: 22px; height: 22px; }
.a11y-panel {
  position: fixed; inset-inline-end: var(--s3); bottom: 76px; z-index: 21; width: min(300px, calc(100vw - 32px));
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: var(--s3); box-shadow: 0 8px 24px rgba(27, 34, 56, .18);
}
.a11y-panel h2 { font-size: var(--fs-lead); margin: 0 0 var(--s3); }
.a11y-panel ul { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: var(--s2); }
.a11y-panel button[data-a11y] {
  width: 100%; min-height: 44px; padding: 0 var(--s3); text-align: start;
  border: 1px solid var(--rule); border-radius: var(--radius); background: transparent; color: var(--ink);
  font: 500 0.95rem/1.3 var(--font-body); cursor: pointer;
}
.a11y-panel button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.a11y-panel .a11y-foot { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); }
.a11y-close { min-height: 36px; padding: 0 var(--s3); border: 1px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
@media (max-width: 600px) {
  .a11y-toggle { bottom: 68px; padding: 0 var(--s2); }
  .a11y-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .a11y-panel { bottom: 124px; }
}

/* ההגדרות עצמן */
html.a11y-text-1 { font-size: 115%; }
html.a11y-text-2 { font-size: 130%; }
html.a11y-contrast {
  --paper: #ffffff; --paper-deep: #ffffff; --ink: #000000; --ink-soft: #000000;
  --rule: #000000; --stamp: #0000b8; --seal: #a00000;
}
html.a11y-contrast .bk-time, html.a11y-contrast .bk-day { border-color: #000; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; font-weight: 600; }
html.a11y-readable { --font-display: var(--font-body); }
html.a11y-readable .ro-title { font-style: normal; }
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

/* כפתור וואטסאפ צף – במחשב ובטאבלט. בטלפון יש כבר פס קבוע בתחתית */
.wa-float {
  position: fixed; inset-inline-start: var(--s3); bottom: var(--s3); z-index: 20;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--paper); box-shadow: 0 4px 14px rgba(27, 34, 56, .25);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: #2A3352; }
@media (max-width: 600px) { .wa-float { display: none; } }
.field.consent { display: flex; gap: var(--s2); align-items: flex-start; max-width: 520px; }
.field.consent input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--ink); }
.field.consent label { font-weight: 400; margin: 0; }
.wa-note { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: var(--s2); }
/* בלי צילום: עמודת הטקסט תופסת את כל הרוחב */
.about:not(:has(.photo-slot)) { grid-template-columns: 1fr; }

/* באנר הסכמה לעוגיות */
.consent {
  position: fixed; inset-inline: var(--s3); bottom: var(--s3); z-index: 30; margin-inline: auto; max-width: 760px;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4);
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: var(--s3) var(--s4); box-shadow: 0 8px 24px rgba(27, 34, 56, .18);
}
.consent p { margin: 0; flex: 1 1 320px; font-size: 0.95rem; }
.consent-actions { display: flex; gap: var(--s2); }
.consent .btn { min-height: 44px; }
@media (max-width: 600px) {
  .consent { bottom: 64px; inset-inline: var(--s2); padding: var(--s3); }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; justify-content: center; }
}
/* hotfix 28.10: התנגשות שם .consent ו-[hidden] */
[hidden] { display: none !important; }
.field.consent { position: static; inset: auto; margin: 0 0 var(--s4); max-width: 520px; background: none; border: 0; box-shadow: none; padding: 0; z-index: auto; }
.field.consent p { flex: initial; }
