/* nachmanhorowitz.com - temporary site until branding. Swap the tokens below for the brand. */
:root {
  --bg: #fbfaf7; --surface: #ffffff; --alt: #f2f1ec; --line: #e4e2da;
  --fg: #1c1f1d; --muted: #5e655f; --accent: #1f5c46; --accent-fg: #ffffff; --accent-soft: #e2eee8;
  --danger: #b3261e; --radius: 14px;
  --font: system-ui, "Segoe UI", "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111412; --surface: #191d1a; --alt: #161a17; --line: #2b322d;
    --fg: #e9ede9; --muted: #a2aca5; --accent: #7cc4a1; --accent-fg: #0e1a14; --accent-soft: #1d3127;
    --danger: #f2a39d; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5.5vw, 54px); letter-spacing: -.5px; }
h2 { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 28px; }
h3 { font-size: 19px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--accent); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.small { padding: 8px 16px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-weight: 800; font-size: 19px; color: var(--fg); text-decoration: none; }
.nav nav { display: flex; gap: 20px; flex: 1; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--fg); }

/* hero */
.hero { padding: 96px 0 80px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .5px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 18px 0 30px; }
.small-lead { font-size: 18px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* sections */
.section { padding: 80px 0; }
.section.alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 20px; margin-bottom: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li { display: flex; gap: 14px; }
.steps span { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 800; }
.steps p { color: var(--muted); font-size: 16px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 760px; }
.checks li { padding-inline-start: 32px; position: relative; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 800; }
.checks strong { color: var(--fg); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; }
textarea { resize: vertical; }
/* Honeypot: visually hidden without moving it off-page (an offset breaks RTL scrolling). */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form { position: relative; }
.msg { min-height: 1.4em; margin: 0; font-size: 15px; }
.msg.ok { color: var(--accent); } .msg.err { color: var(--danger); }
.foot { padding: 28px 0; color: var(--muted); font-size: 14px; }

/* chat */
.chat-fab { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 20; display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 700;
  box-shadow: 0 6px 20px rgb(0 0 0 / 18%); cursor: pointer; }
.chat { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 30; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 100px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px rgb(0 0 0 / 22%); display: flex; flex-direction: column; overflow: hidden; }
.chat header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--accent); color: var(--accent-fg); }
.chat header button { background: none; border: 0; color: inherit; font-size: 18px; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.bot { background: var(--alt); align-self: flex-start; border-start-start-radius: 4px; }
.bubble.me { background: var(--accent); color: var(--accent-fg); align-self: flex-end; border-start-end-radius: 4px; }
.bubble.typing { color: var(--muted); }
.bubble a { color: inherit; font-weight: 700; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { border-radius: 999px; }

@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .form .row { grid-template-columns: 1fr; }
  .chat-fab span { display: none; }
  .chat { inset-inline-start: 16px; bottom: 16px; }
}
