/* bekolram - Hebrew schema-therapy group landing page. Mobile first, one narrow column on every screen. */
:root {
  --paper: #f7f2ea;
  --paper-2: #efe6d8;
  --card: #fffdf9;
  --ink: #2c3a34;
  --ink-2: #55635c;
  --muted: #7d8a83;
  --sage: #5f8270;
  --sage-soft: #e3ece4;
  --terra: #b9603f;
  --terra-dark: #9c4c2f;
  --blue: #6f8ea6;
  --line: #e2d8c8;
  --err: #b3261e;
  --err-soft: #fbeae8;
  --shadow: 0 1px 2px rgba(60, 45, 25, .06), 0 8px 24px rgba(60, 45, 25, .07);
  --radius: 18px;
  --head: 'Rubik', 'Assistant', 'Segoe UI', Arial, sans-serif;
  --body: 'Assistant', 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b211e; --paper-2: #232b27; --card: #252e2a; --ink: #ece6dc; --ink-2: #c4c9c2; --muted: #98a39c;
    --sage: #8fb39f; --sage-soft: #2c3a33; --terra: #e08a66; --terra-dark: #f09c78; --blue: #9db7cb; --line: #38433d;
    --err: #ff8a80; --err-soft: #3a2422; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1b211e; --paper-2: #232b27; --card: #252e2a; --ink: #ece6dc; --ink-2: #c4c9c2; --muted: #98a39c;
  --sage: #8fb39f; --sage-soft: #2c3a33; --terra: #e08a66; --terra-dark: #f09c78; --blue: #9db7cb; --line: #38433d;
  --err: #ff8a80; --err-soft: #3a2422; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}

* { 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(--body); font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-underline-offset: 3px; }
bdi, [dir=ltr] { unicode-bidi: isolate; }
a[href^="tel:"], a[href^="https://wa.me"], .nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { max-width: 600px; margin: 0 auto; padding: 0 16px 120px; }
@media (min-width: 760px) {
  body { background: linear-gradient(180deg, var(--paper-2) 0, var(--paper) 520px); }
  .page { padding-top: 24px; }
}

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; color: var(--ink); line-height: 1.25; margin: 0; }
h1 { font-size: clamp(32px, 8.6vw, 44px); letter-spacing: -.01em; font-weight: 700; }
h2 { font-size: clamp(25px, 6.6vw, 31px); margin-bottom: 18px; }
h3 { font-size: 22px; margin: 30px 0 14px; }
h4 { font-size: 19px; font-weight: 500; }
p { margin: 0 0 14px; }
strong { font-weight: 700; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- hero ---------- */
.hero { padding: 28px 0 8px; text-align: center; }
.mark { font-family: var(--head); font-size: 17px; color: var(--sage); letter-spacing: .02em; margin-bottom: 14px; }
.mark::before, .mark::after { content: ''; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 10px; opacity: .6; }
.chips { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li { background: var(--sage-soft); color: var(--sage); font-weight: 600; font-size: 15px; padding: 4px 14px; border-radius: 999px; }
.lead { font-size: 19px; color: var(--ink-2); margin: 18px auto 22px; max-width: 34em; }
.art { margin: 22px 0; }
.art img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-2); }
.art figcaption { font-size: 15px; color: var(--muted); text-align: center; margin-top: 10px; font-style: italic; }
.art-hero { margin: 4px -4px 22px; }

.facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.facts .ic { color: var(--terra); margin-bottom: 4px; }
.facts b { font-size: 19px; line-height: 1.25; }
.facts span { font-size: 14.5px; color: var(--muted); line-height: 1.3; }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts b { font-size: 17px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border-radius: 999px;
  font: 700 19px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 6px 18px rgba(185, 96, 63, .28); }
.btn-primary:hover { background: var(--terra-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.hint { font-size: 15px; color: var(--muted); margin-top: 14px; }

/* ---------- sections ---------- */
.sec { padding: 44px 0 6px; position: relative; }
.sec::before { content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 64px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 10'%3E%3Cpath d='M2 6c6-5 10-5 15 0s9 5 15 0 10-5 15 0 9 5 15 0' fill='none' stroke='%23b9a98f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; opacity: .8; }

.feel { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.feel li { background: var(--card); border-radius: 14px; padding: 14px 18px 14px 16px; border-inline-start: 4px solid var(--blue); box-shadow: var(--shadow); font-size: 17.5px; }
.note-soft { color: var(--ink-2); font-size: 16.5px; background: var(--sage-soft); border-radius: 14px; padding: 12px 16px; margin-top: 16px; }

.modes { display: grid; gap: 12px; }
.mode { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: start; }
.mode .ic { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); }
.mode h4 { margin-top: 6px; }
.mode p { margin: 6px 0 0; font-size: 16.5px; color: var(--ink-2); }

/* ---------- details / accordions ---------- */
.more { margin-top: 28px; }
.more-title { font-weight: 700; color: var(--sage); margin-bottom: 8px; font-size: 16px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: 17.5px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; }
summary::-webkit-details-marker { display: none; }
summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 14px; }
.chev { color: var(--muted); transition: transform .2s; }
details[open] > summary .chev { transform: rotate(180deg); }
.details-body { padding: 0 18px 8px; font-size: 16.5px; color: var(--ink-2); }
.tight { padding-inline-start: 20px; margin: 0 0 14px; }
.tight li { margin-bottom: 6px; }
.domains-title { font-weight: 700; color: var(--ink); margin-top: 6px; }
.domains { margin: 0 0 12px; display: grid; gap: 8px; }
.domains div { background: var(--paper); border-radius: 10px; padding: 8px 12px; }
.domains dt { font-weight: 700; color: var(--sage); font-size: 15.5px; }
.domains dd { margin: 2px 0 0; font-size: 15.5px; }
.links { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.links li { display: flex; flex-direction: column; background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.links a, .links .book { font-weight: 700; }
.links span:not(.book) { font-size: 15px; color: var(--muted); }

/* ---------- why ---------- */
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why li { display: flex; gap: 14px; align-items: flex-start; }
.why .ic { margin-top: 4px; color: var(--terra); width: 24px; height: 24px; }

/* ---------- info list ---------- */
.info { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; box-shadow: var(--shadow); }
.info > div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.info > div:last-child { border-bottom: 0; }
.info dt { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sage); font-size: 15.5px; }
.info dt .ic { width: 18px; height: 18px; }
.info dd { margin: 3px 0 0; font-size: 17px; }

/* ---------- who ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17.5px; }
.checks .ic { color: #fff; background: var(--sage); border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: 3px; stroke-width: 2.6; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; position: relative; }
.steps li { counter-increment: s; position: relative; padding: 0 56px 22px 0; }
.steps li::before { content: counter(s); position: absolute; right: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--terra); color: var(--terra); font: 700 18px/34px var(--body); text-align: center; z-index: 1; }
.steps li::after { content: ''; position: absolute; right: 18px; top: 36px; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 11px); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-size: 18.5px; }
.steps span { display: block; color: var(--ink-2); font-size: 16.5px; }

/* ---------- bio ---------- */
.bio { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.monogram { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); display: grid; place-items: center; font: 700 22px/1 var(--head); }
.bio-name { font-family: var(--head); font-size: 22px; font-weight: 600; margin-bottom: 0; }
.bio-title { color: var(--sage); font-weight: 700; font-size: 16.5px; margin-bottom: 10px; }
.bio p:last-child { margin-bottom: 0; }

/* ---------- form ---------- */
.sec-form { scroll-margin-top: 12px; }
.before { background: #fbf1e3; border: 1px solid #ecd6b6; border-radius: 14px; padding: 14px 16px; font-size: 16.5px; margin-bottom: 22px; }
:root[data-theme="dark"] .before { background: #3a3125; border-color: #5a4a33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .before { background: #3a3125; border-color: #5a4a33; } }
.before p:last-child { margin-bottom: 0; }
form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px 22px; box-shadow: var(--shadow); }
@media (min-width: 560px) { form { padding: 26px 24px; } }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.row2 { display: grid; gap: 0 14px; }
@media (min-width: 520px) { .row2 { grid-template-columns: 1fr 1fr; } }
label, legend { display: block; font-weight: 700; font-size: 16.5px; margin-bottom: 6px; padding: 0; }
.lat { font-weight: 500; color: var(--muted); font-size: 14.5px; }
/* required fields (Ariel 26.11.2026): a red asterisk right after the label text */
.req { color: var(--err); font-weight: 700; margin-inline-start: 2px; }
.req-note { margin: 0 0 14px; }
input[type=text], input:not([type]), input[type=email], input[type=tel], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: 500 17px/1.3 var(--body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
input[dir=ltr] { text-align: left; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8a83' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center; background-size: 18px; padding-left: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--err); background-color: var(--err-soft); }
/* a date reads left to right (day, month, year), as on the insurance card; the Hebrew placeholders stay right to left */
.dob { display: grid; grid-template-columns: 1fr 1.35fr 1.15fr; gap: 8px; direction: ltr; }
.dob select { direction: rtl; }
.help { font-size: 14.5px; color: var(--muted); margin: 6px 0 0; }
.help.center { text-align: center; margin-top: 12px; }
.err { color: var(--err); font-size: 15px; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.err-form { text-align: center; margin: 0 0 12px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 16px; cursor: pointer; margin: 0 0 6px; line-height: 1.5; }
.check.small { font-size: 15.5px; margin-top: 10px; }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--sage); }
.consents { background: var(--paper); border-radius: 14px; padding: 14px; }
.consents .check { margin-bottom: 4px; }
.consents .err { margin: 0 36px 10px 0; }
.consents .check + .err:empty + .check, .consents .err + .check { margin-top: 10px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { margin: 0; font-weight: 600; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-size: 16px; cursor: pointer; }
.pills input:checked + span { background: var(--sage); border-color: var(--sage); color: #fff; }
.pills input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.done { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); }
.done:focus { outline: none; }
.done-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; }
.done-ic .ic { width: 32px; height: 32px; stroke-width: 2.6; }
.done h3 { margin: 0 0 12px; }
.done p { color: var(--ink-2); }
.sketch-note { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin: 16px 0 0; }

/* ---------- end ---------- */
.end { padding: 48px 0 0; }
.emergency { background: var(--paper-2); border-radius: 14px; padding: 16px; font-size: 15.5px; color: var(--ink-2); margin-bottom: 12px; }
.emergency p { margin-bottom: 8px; }
.crisis { margin: 0; padding-inline-start: 18px; }
.crisis li { margin-bottom: 6px; }
.privacy summary { font-size: 15.5px; font-weight: 600; color: var(--ink-2); min-height: 48px; }
.privacy .details-body { font-size: 15px; }
.muted { color: var(--muted); font-style: italic; }

/* ---------- sticky CTA (phones) ---------- */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 20;
  display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px; background: var(--terra); color: #fff;
  font: 700 18px/1 var(--body); text-decoration: none; box-shadow: 0 10px 28px rgba(60, 35, 20, .28);
  transform: translateY(140%); transition: transform .25s ease; }
.sticky-cta.on { transform: none; }
@media (min-width: 760px) { .sticky-cta { left: 50%; right: auto; width: 320px; margin-left: -160px; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
