/* ד"ר נעמה בר — סגנון האתר */

:root {
  --paper: #f7f2ea;
  --paper-deep: #efe6d8;
  --card: #fffdf9;
  --ink: #2b2622;
  --ink-soft: #5c534b;
  --line: #e2d7c6;
  --accent: #a8472f;        /* טרקוטה, ממשיך את האדום של הפלייר */
  --accent-dark: #8a3825;
  --accent-tint: #f4e1d8;
  --sage: #56634a;          /* ירוק עמק */
  --sage-tint: #e3e8da;

  --font-head: "Frank Ruhl Libre", "David", serif;
  --font-body: "Assistant", "Arial", sans-serif;

  --wrap: 1120px;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(43, 38, 34, .06), 0 8px 28px rgba(43, 38, 34, .07);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- כותרת עליונה ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 234, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.brand {
  font-family: var(--font-head); font-weight: 700; font-size: 1.45rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--accent); }

.nav { margin-inline-start: auto; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.02rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none; margin-inline-start: auto;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; inset-inline: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 9px 18px; font-size: .95rem; }

/* הטלפון בכותרת: המספר תמיד בשורה אחת, גם בטלפון */
.header-cta { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
@media (max-width: 860px) {
  .site-header .wrap { gap: 12px; }
  .brand { font-size: 1.25rem; }
  .nav-toggle { padding: 7px 11px; }
  .header-cta { padding: 8px 14px; font-size: .92rem; }
}
@media (max-width: 370px) {
  .brand { font-size: 1.12rem; }
  .header-cta { padding: 8px 11px; font-size: .86rem; }
}

/* ---------- פתיח ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.eyebrow {
  font-weight: 700; font-size: .98rem; color: var(--sage);
  letter-spacing: .01em; margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: clamp(1.15rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-soft); font-size: 1rem; padding: 0; margin: 0; list-style: none; }
.hero-meta li::before { content: "•"; color: var(--accent); margin-inline-end: 8px; }

.portrait { position: relative; justify-self: center; width: min(340px, 100%); }
.portrait::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  background: var(--sage-tint); border-radius: 200px 200px var(--radius) var(--radius);
}
.portrait img {
  position: relative; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top;
  border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { order: -1; width: min(240px, 70%); }
}

/* ---------- אזורים ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--paper-deep); }
.section-head { max-width: 44em; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); }
.kicker { display: block; font-weight: 700; color: var(--accent); font-size: .95rem; margin-bottom: 8px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }
.card .num { font-family: var(--font-head); font-size: 1.1rem; color: var(--accent); font-weight: 700; display: block; margin-bottom: 10px; }

.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0 0 32px; }
@media (max-width: 860px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .areas { grid-template-columns: 1fr; } }
.areas li {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; gap: 12px;
}
.areas li::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}

.note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--sage-tint); border-radius: 14px; padding: 18px 22px; color: var(--ink);
}
.note strong { color: var(--sage); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.quote {
  font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.45;
  color: var(--ink); margin: 0;
}
.quote::before {
  content: "״"; display: block; font-size: 4.5rem; line-height: .6; color: var(--accent); margin-bottom: 12px;
}

.lecture-teaser {
  background: var(--ink); color: var(--paper); border-radius: 28px;
  padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.lecture-teaser h2, .lecture-teaser h3 { color: #fff; }
.lecture-teaser p { color: #d9cfc3; }
.lecture-teaser .kicker { color: #e6a28c; }
.lecture-teaser ul { margin: 0; padding: 0; list-style: none; }
.lecture-teaser li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-weight: 600; }
.lecture-teaser li:last-child { border-bottom: 0; }
.lecture-teaser .btn-ghost { border-color: #fff; color: #fff; }
.lecture-teaser .btn-ghost:hover { background: #fff; color: var(--ink); }
@media (max-width: 860px) { .lecture-teaser { grid-template-columns: 1fr; } }

/* ---------- יצירת קשר ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list a, .contact-list span {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); font-weight: 600;
}
.contact-list .ico {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-dark);
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--ink-soft); font-weight: 400; font-size: .92rem; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: right; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-privacy { font-size: .92rem; color: var(--ink-soft); margin: 4px 0 18px; }
.form-status { margin: 16px 0 0; font-weight: 700; min-height: 1.5em; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: var(--accent-dark); }

/* ---------- עמודים פנימיים ---------- */
.page-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-hero p { font-size: clamp(1.15rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 40em; }

.prose { max-width: 46em; }
.prose h2 { margin-top: 1.4em; }

.timeline { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 28px 28px; }
.timeline li::before {
  content: ""; position: absolute; inset-inline-start: -7px; top: 9px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper);
}
.timeline .when { display: block; font-weight: 700; color: var(--accent-dark); font-size: .98rem; }
.timeline .what { display: block; font-weight: 700; font-size: 1.12rem; }
.timeline .detail { display: block; color: var(--ink-soft); font-size: 1.02rem; }

.pubs { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.pubs li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; direction: ltr; text-align: left; font-size: 1rem; line-height: 1.6; }

.takeaways { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .takeaways { grid-template-columns: 1fr; } }

/* ---------- תחתית ---------- */
.site-footer { background: var(--ink); color: #cfc5b9; padding: 48px 0 32px; font-size: 1rem; }
.site-footer a { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.footer-brand { font-family: var(--font-head); font-size: 1.4rem; color: #fff; font-weight: 700; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .92rem; }

/* כפתור וואטסאפ צף בנייד */
.wa-float {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: none; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 760px) { .wa-float { display: grid; } }
