/* נדב מועלם חשבונאות וייעוץ עסקי - אתר הדגמה.
   Concept: columnar ledger paper, a double underline for "the bottom line",
   and blue-pencil audit ticks as the single moment of motion. */

:root {
  --paper: #F2F5F1;
  --paper-alt: #E6EDE7;
  --sheet: #FFFFFF;
  --rule: #CCDBD1;
  --rule-strong: #8FAA9A;
  --ink: #15262A;
  --ink-soft: #3E5451;
  --green: #1D4E40;
  --green-deep: #12372D;
  --pencil: #2B45A0;
  --on-dark: #F0F5F1;
  --on-dark-soft: #C9D9CE;
  --error: #A3261B;
  --font-head: "Miriam Libre", "Noto Sans Hebrew", Arial, sans-serif;
  --font-body: "Noto Sans Hebrew", Arial, sans-serif;
  --wrap: 1120px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  font-variant-numeric: lining-nums tabular-nums;
}

img, svg, iframe { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--green-deep); }

:focus-visible {
  outline: 3px solid var(--pencil);
  outline-offset: 3px;
}

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.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;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.narrow { max-width: 780px; }

/* Demo banner */
.demo-banner {
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  font-size: .95rem;
  line-height: 1.5;
  padding: .55rem 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
  margin-inline-end: auto;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  padding-bottom: 3px;
  border-bottom: 4px double var(--green);
  align-self: flex-start;
}
.brand-role {
  font-size: .95rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.02rem;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover { border-bottom-color: var(--green); color: var(--ink); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: .45rem .8rem;
  cursor: pointer;
}
.bars { display: inline-flex; flex-direction: column; gap: 4px; }
.bars span { display: block; width: 18px; height: 2px; background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 50px;
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-small { min-height: 42px; padding: .45rem 1rem; font-size: .98rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1rem, 3vw, 2rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  letter-spacing: -.01em;
  line-height: 1.12;
  margin-bottom: .45em;
  max-width: 13ch;
}
.hero-lead {
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.hero-where { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* The working sheet */
.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 6px solid var(--green);
  border-radius: 2px;
  padding: 1.4rem 1.5rem .6rem;
  box-shadow: 0 1px 0 var(--rule), 0 18px 36px -24px rgba(21, 38, 42, .35);
}
.sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--ink);
}
.sheet-title { font-size: 1.3rem; margin: 0; }
.sheet-sub { margin: 0; font-size: .98rem; color: var(--ink-soft); }

.sheet-rows {
  --amount: 7.25rem;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* the double vertical rule of the amount column */
.sheet-rows::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: var(--amount);
  width: 4px;
  border-inline: 1px solid var(--rule-strong);
}
.sheet-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--amount);
  align-items: center;
  min-height: 3.6rem;
  border-bottom: 1px solid var(--rule);
}
.row-text {
  font-family: var(--font-head);
  font-size: 1.08rem;
  padding: .5rem 0 .5rem 1rem;
}
.tick {
  justify-self: center;
  width: 34px;
  height: 26px;
  overflow: visible;
}
.tick path {
  fill: none;
  stroke: var(--pencil);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .tick path { animation: tick .45s cubic-bezier(.5, 0, .3, 1) both; }
  .t1 path { animation-delay: .55s; }
  .t2 path { animation-delay: .9s; }
  .t3 path { animation-delay: 1.25s; }
  .t4 path { animation-delay: 1.6s; }
}
@keyframes tick {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.sheet-rows li.row-open {
  border-bottom: 4px double var(--ink);
}
.row-open .row-text { color: var(--ink-soft); }
.row-link {
  justify-self: center;
  font-size: .98rem;
  font-weight: 700;
  text-align: center;
  padding: .35rem .25rem;
  line-height: 1.3;
}

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--paper-alt); }
.section-head { margin-bottom: 2rem; max-width: 40em; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); }
.section-lead { color: var(--ink-soft); font-size: 1.15rem; margin: 0; }

.demo-note {
  font-size: .98rem;
  color: var(--ink-soft);
  border-inline-start: 3px solid var(--pencil);
  padding-inline-start: .8rem;
  margin: 1.5rem 0 0;
  max-width: 44em;
}

/* Ledger (services) */
.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
}
.ledger-side { padding: 1.6rem 1.8rem 1.2rem; }
.ledger-side + .ledger-side {
  border-inline-start: 4px double var(--rule-strong);
}
.ledger-title {
  font-size: 1.3rem;
  padding-bottom: .7rem;
  margin-bottom: .4rem;
  border-bottom: 1px solid var(--ink);
}
.ledger-entry {
  padding: 1rem 0 .4rem;
  border-bottom: 1px solid var(--rule);
}
.ledger-entry h4 { font-size: 1.12rem; margin-bottom: .35rem; color: var(--green); }
.ledger-entry p { margin-bottom: .6rem; }
.ledger-blank { list-style: none; margin: 0; padding: 0; }
.ledger-blank li {
  min-height: 2.9rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  color: var(--pencil);
  font-size: 1rem;
}

/* Start */
.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  column-gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule-strong);
}
.steps li:last-child { border-bottom: 1px solid var(--rule-strong); }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--green);
  padding-top: .1rem;
}
.steps h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.bring {
  background: var(--sheet);
  border: 1px solid var(--rule);
  padding: 1.6rem 1.6rem 1.2rem;
}
.bring h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.checklist { list-style: none; margin: 0 0 1rem; padding: 0; }
.checklist li {
  position: relative;
  padding: .55rem 2.1rem .55rem 0;
  border-bottom: 1px solid var(--rule);
}
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .85rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--rule-strong);
  border-radius: 2px;
}
.bring-note { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.portrait {
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 2.3rem, var(--rule) 2.3rem, var(--rule) calc(2.3rem + 1px)),
    var(--sheet);
  border: 1px dashed var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
}
.portrait span { background: var(--sheet); padding: .3rem .6rem; }
.about-text { max-width: 36em; }
.placeholder-text { color: var(--pencil); }
.facts { margin: 1.6rem 0 0; border-top: 2px solid var(--ink); }
.facts div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt { font-family: var(--font-head); font-weight: 700; }
.facts dd { margin: 0; }
.pending { color: var(--pencil); }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  padding: 1.1rem 0 1.1rem 2.2rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: .2rem;
  top: 50%;
  transform: translateY(-52%);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--green);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.2rem; color: var(--ink-soft); max-width: 40em; }
.disclaimer { font-size: .95rem; color: var(--ink-soft); margin: 1.6rem 0 0; }

/* Contact (dark band) */
.section-dark { background: var(--green-deep); color: var(--on-dark); }
.section-dark h2 { color: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); }
.contact-lead { color: var(--on-dark-soft); font-size: 1.15rem; }
.contact-list { list-style: none; margin: 1.5rem 0; padding: 0; border-top: 1px solid rgba(240, 245, 241, .3); }
.contact-list li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(240, 245, 241, .3);
}
.c-label { color: var(--on-dark-soft); }
.contact-info a { color: #fff; font-weight: 700; }
.contact-info a:hover { color: var(--on-dark-soft); }
.contact-info :focus-visible { outline-color: #fff; }
.pending-light { color: var(--on-dark-soft); }
.map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.form-panel {
  background: var(--sheet);
  color: var(--ink);
  border-radius: var(--radius);
  border-top: 6px solid var(--pencil);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.form-panel h2 { color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.form-intro { color: var(--ink-soft); }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.req { color: var(--error); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #65797A;
  border-radius: var(--radius);
  padding: .6rem .75rem;
  min-height: 48px;
}
.field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--pencil); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.hint { font-size: .95rem; color: var(--ink-soft); margin: .3rem 0 0; }
.error { color: var(--error); font-size: .95rem; margin: .25rem 0 0; min-height: 0; }
.error:empty { display: none; }
.field.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .7rem;
  align-items: start;
}
.field.check input {
  width: 22px;
  height: 22px;
  margin: .25rem 0 0;
  accent-color: var(--green);
}
.field.check label { font-weight: 400; }
.field.check .error { grid-column: 2; }
.consent-note { color: var(--ink-soft); }
.form-status {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border-inline-start: 4px solid var(--green);
}
.form-status strong { display: block; font-family: var(--font-head); font-size: 1.08rem; }
.form-status p { margin: .3rem 0 0; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--paper-alt); border-top: 1px solid var(--rule); }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: 2.2rem;
  font-size: 1rem;
}
.footer-grid p { margin: 0 0 .25rem; }
.f-name { font-family: var(--font-head); font-weight: 700; }
.f-links { list-style: none; margin: 0; padding: 0; }
.f-links li { margin-bottom: .3rem; }
.f-links span { color: var(--ink-soft); }

/* Responsive */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav { flex-wrap: wrap; gap: .8rem; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: .5rem 1.25rem 1rem;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
  .hero-grid, .start-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .portrait { max-width: 300px; aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger-side + .ledger-side { border-inline-start: 0; border-top: 4px double var(--rule-strong); }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 520px) {
  body { font-size: 1.06rem; }
  .wrap { padding-inline: 1rem; }
  .nav-cta { display: none; }
  .brand-name { font-size: 1.25rem; }
  .sheet { padding: 1.1rem 1rem .4rem; }
  .sheet-rows { --amount: 5.6rem; }
  .row-text { font-size: 1rem; padding-left: .6rem; }
  .row-link { font-size: .92rem; }
  .ledger-side { padding: 1.3rem 1.1rem 1rem; }
  .facts div { grid-template-columns: 7rem minmax(0, 1fr); }
  .contact-list li { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Accessibility statement page */
.doc h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.doc h2 { font-size: 1.35rem; margin-top: 1.9rem; }
.doc ul { padding-inline-start: 1.3rem; }
.doc li { margin-bottom: .4rem; }
