/* ד"ר איזולדה שרייבר | PhD. Ezolda Schreiber
   עיצוב תואם לאתר המקורי: Heebo, ירוק כהה וירוק-אפור בהיר.
   הקובץ משרת גם את העברית (RTL) וגם את האנגלית (LTR) — כל הריווחים לוגיים. */
:root {
  --green: #1F514C;
  --green-dark: #173f3b;
  --sage: #EFF2ED;
  --ink: #141414;
  --white: #FFFFFF;
  --muted: #4a5a57;
  --line: #d6ddd3;
  --error: #b42318;
  --focus: #f2b84b;
  --font: "Heebo", "Arial Hebrew", Arial, sans-serif;
  --radius-card: 28px;
  --radius-img: 20px;
  --max: 1150px;
  --bar-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(96px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.8; overflow-x: hidden; overflow-x: clip; }
/* מגע: בלי השהיית לחיצה כפולה, ועם משוב לחיצה עדין */
a, button, summary, label, select, input, textarea { touch-action: manipulation; -webkit-tap-highlight-color: rgba(31, 81, 76, .15); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * 16px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; padding-top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 84px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { width: 16px; height: 16px; }
.brand-text { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; line-height: 1.3; min-width: 0; }
.brand-tag { font-weight: inherit; }
@media (min-width: 1001px) { .brand-tag { white-space: nowrap; } }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-link { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; color: var(--green); transition: background .2s; }
.icon-link:hover { background: var(--sage); }
.icon-link svg { width: 28px; height: 28px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding-inline: 12px;
  border: 1.5px solid var(--green); border-radius: 1000px; color: var(--green);
  font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s, color .2s;
}
.lang-switch:hover { background: var(--green); color: var(--white); }
.lang-switch svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 1000px; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 18px; line-height: 1.5;
  text-decoration: none; white-space: nowrap;
  padding-block: 4px; padding-inline: 20px 4px;
  transition: background .2s;
}
.btn .arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; transition: transform .2s; }
.btn .arrow svg { width: 16px; height: 16px; }
[dir="ltr"] .btn .arrow svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: translateX(-3px); }
[dir="ltr"] .btn:hover .arrow { transform: translateX(3px); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green .arrow { background: var(--white); color: var(--ink); }
.btn-green:hover { background: var(--green-dark); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white .arrow { background: var(--green); color: var(--white); }
.btn-white:hover { background: var(--sage); }
.btn-outline { background: var(--white); color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn-outline:hover { background: var(--sage); }
.btn-plain { padding: 10px 22px; }

/* ---------- Layout ---------- */
main { display: flex; flex-direction: column; gap: 40px; padding-block: 12px 48px; }

.hero { background: var(--green); color: var(--white); border-radius: var(--radius-card); padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 450px; gap: 32px; align-items: center; }
.hero-text { padding: 32px 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.hero h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; line-height: 1.2; }
.hero .sub { font-size: clamp(21px, 2.6vw, 32px); font-weight: 700; line-height: 1.4; }
.hero .tag { font-size: clamp(17px, 1.9vw, 22px); font-weight: 700; opacity: .95; }
.hero .btn { margin-top: 18px; }
.hero-photo { border-radius: var(--radius-img); overflow: hidden; aspect-ratio: 450 / 548; width: 100%; max-width: 450px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }

.card { background: var(--sage); border-radius: var(--radius-card); padding: 38px; }
.about h2 { font-size: 35px; color: var(--green); font-weight: 800; margin-bottom: 12px; }
.about p { font-size: 20px; line-height: 1.8; max-width: 72ch; }
.about p + p { margin-top: 10px; }
.about ul { margin: 0; padding-inline-start: 22px; font-size: 20px; line-height: 1.8; max-width: 72ch; display: flex; flex-direction: column; gap: 6px; }
.about li::marker { color: var(--green); }

.service { display: grid; grid-template-columns: minmax(0, 1fr) 414px; gap: 40px; align-items: center; }
.service-body { min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.service h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--green); }
.service h3 { font-size: 22px; font-weight: 700; margin-top: 4px; }
.service ul { margin: 0; padding-inline-start: 22px; font-size: 20px; line-height: 1.8; }
.service li::marker { color: var(--green); }
.service-media { border-radius: var(--radius-img); overflow: hidden; width: 100%; max-width: 414px; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service .btn { margin-top: 10px; }
.lead { font-size: 20px; line-height: 1.8; }

.examples { width: 100%; }
.examples summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--green); padding-block: 4px; }
.examples summary::-webkit-details-marker { display: none; }
.examples summary .chev { width: 18px; height: 18px; transition: transform .2s; }
.examples[open] summary .chev { transform: rotate(180deg); }
.examples ul { margin-top: 8px; columns: 2; column-gap: 32px; font-size: 18px; line-height: 1.75; }
.examples li { break-inside: avoid; }

.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 44px; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--green); }
.cta p { font-size: 20px; max-width: 46ch; }
.cta .btn { margin-top: 8px; }

/* ---------- Contact ----------
   פרטים ותמונה זה לצד זה (סימטרי), והטופס ברוחב מלא מתחתיהם */
.contact { background: var(--green); color: var(--white); border-radius: 32px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.contact-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.contact-main { padding: 32px 40px; display: flex; flex-direction: column; justify-content: center; gap: 24px; min-width: 0; }
.contact h2 { font-size: 34px; font-weight: 700; }
.contact-id { font-size: 26px; font-weight: 700; line-height: 1.4; }
.contact-id span { display: block; font-size: 22px; font-weight: 400; }
.contact-lines { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.contact-lines a { color: var(--white); font-size: 24px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines svg { width: 22px; height: 22px; flex-shrink: 0; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-photo { border-radius: var(--radius-img); overflow: hidden; width: 100%; min-height: 380px; max-height: 520px; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.form-card { background: var(--white); color: var(--ink); border-radius: 22px; padding: 32px 36px; display: flex; flex-direction: column; gap: 14px; }
.form-card h3 { font-size: 26px; font-weight: 800; color: var(--green); }
.form-card .hint { font-size: 15px; color: var(--muted); }
.form-card form { position: relative; display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.field.span2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label { font-weight: 700; font-size: 16px; line-height: 1.5; }
.req { color: var(--error); }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea { font-family: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; min-height: 48px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%231F514C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 16px; background-position: left 14px center; padding-inline-end: 40px; }
[dir="ltr"] .field select { background-position: right 14px center; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,81,76,.18); }
.field input[type="email"], .field input[type="tel"] { direction: ltr; }
[dir="rtl"] .field input[type="email"], [dir="rtl"] .field input[type="tel"] { text-align: right; }
.field .err { color: var(--error); font-size: 14px; }
.field .err:empty { display: none; }
.field.invalid input, .field.invalid select { border-color: var(--error); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.6; font-weight: 400 !important; cursor: pointer; }
.consent input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.consent.invalid { color: var(--error); }
.form-notice { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 16px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--green); }
.form-status.bad { color: var(--error); }
.form-status.info { color: var(--muted); }
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
button[disabled] { opacity: .6; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; font-size: 15px; color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--green); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; cursor: pointer; }

/* ---------- Mobile action bar (מוצג רק בטלפון) ---------- */
.mobile-bar { display: none; }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 26px; padding-block: 24px 60px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); color: var(--green); font-weight: 800; }
.legal h2 { font-size: 24px; color: var(--green); font-weight: 800; margin-bottom: 6px; }
.legal p, .legal li { font-size: 18px; line-height: 1.85; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 6px 0 0; padding-inline-start: 22px; }
.legal .updated { color: var(--muted); font-size: 16px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 16px; margin-block: 8px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.legal th { background: var(--sage); }
.table-scroll { overflow-x: auto; }

/* ================= Tablet ================= */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-width: 100%; aspect-ratio: 4 / 3; order: -1; }
  .contact-top { gap: 16px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field.span2 { grid-column: 1 / -1; }
  .hero-text, .contact-main { padding: 18px 20px 26px; }
  .service { grid-template-columns: 1fr; gap: 22px; }
  .service-media { max-width: 100%; order: -1; aspect-ratio: 16 / 9; }
}

/* ================= Mobile ================= */
@media (max-width: 760px) {
  html { scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
  body { font-size: 17px; padding-bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom, 0px)); }
  body.kbd-open { padding-bottom: 0; }
  body.kbd-open .mobile-bar { display: none; }
  main { gap: 20px; padding-block: 4px 28px; }

  /* כותרת עליונה קומפקטית */
  .site-header .wrap { min-height: 64px; padding-block: 8px; }
  .brand { gap: 12px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .brand-text { font-size: 18px; line-height: 1.3; gap: 2px; }
  .brand-text > span:first-child { font-weight: 800; white-space: nowrap; }
  .brand-tag { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
  .header-actions .btn { display: none; }
  .header-actions { gap: 6px; }
  .lang-switch { height: 30px; padding-inline: 8px; gap: 4px; font-size: 12.5px; border-width: 1.2px; position: relative; }
  .lang-switch svg { width: 13px; height: 13px; }
  .lang-switch::before { content: ""; position: absolute; inset: -7px -4px; } /* אזור לחיצה נשאר בגודל נוח לאצבע */
  .icon-link { width: 44px; height: 44px; }
  .icon-link svg { width: 26px; height: 26px; }

  /* פתיחה */
  .hero { padding: 10px; border-radius: 24px; gap: 4px; }
  .hero-photo { aspect-ratio: 1 / 1; border-radius: 16px; }
  .hero-text { padding: 14px 10px 18px; gap: 8px; }
  .hero h1 { font-size: 32px; }
  .hero .sub { font-size: 21px; }
  .hero .tag { font-size: 17px; }
  .hero .btn { margin-top: 10px; }

  /* כרטיסים */
  .card { padding: 22px 18px; border-radius: 22px; }
  .about h2 { font-size: 28px; }
  .about p, .about ul, .lead, .cta p { font-size: 17.5px; line-height: 1.75; }
  .about ul { padding-inline-start: 20px; }
  .service { gap: 16px; }
  .service-media { border-radius: 14px; margin: -8px -8px 0; width: calc(100% + 16px); max-width: none; }
  .service h2 { font-size: 25px; }
  .service h3 { font-size: 19px; }
  .service ul { font-size: 17px; line-height: 1.7; padding-inline-start: 20px; }
  .service li + li { margin-top: 4px; }
  /* כל כפתורי יצירת הקשר בטלפון: ממורכזים, 40% מרוחב הכרטיס (ולא צרים מהטקסט) */
  .service .btn, .cta .btn, .hero .btn, .form-actions .btn {
    align-self: center; width: 212px; max-width: 100%;
    position: relative; justify-content: center; text-align: center;
    padding-inline: 48px; /* מקום שווה משני הצדדים, כדי שהטקסט יהיה ממורכז בדיוק */
  }
  .service .btn .arrow, .cta .btn .arrow, .hero .btn .arrow, .form-actions .btn .arrow {
    position: absolute; inset-inline-end: 4px; top: 0; bottom: 0; margin-block: auto;
  }
  .hero-text { align-items: stretch; text-align: center; }
  .form-actions { flex-direction: column; align-items: center; text-align: center; }
  .examples summary { font-size: 18px; }
  .examples ul { columns: 1; font-size: 16.5px; }
  .cta { padding-block: 28px; }

  /* יצירת קשר */
  .contact { padding: 10px; border-radius: 24px; }
  .contact { gap: 10px; }
  .contact-top { grid-template-columns: 1fr; }
  .contact-photo { display: none; }
  .contact-main { padding: 16px 10px 10px; gap: 18px; }
  .contact h2 { font-size: 28px; }
  .contact-id { font-size: 22px; }
  .contact-id span { font-size: 18px; }
  .contact-lines a { font-size: 20px; }
  .contact-buttons { display: none; }
  .form-card { padding: 20px 16px; border-radius: 18px; }
  .form-card h3 { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field.span2 { grid-column: auto; }

  .site-footer .wrap { flex-direction: column; gap: 4px; font-size: 14px; }
  .site-footer nav a, .site-footer .linklike { display: inline-flex; align-items: center; min-height: 44px; }
  .btn { min-height: 46px; }
  .btn .arrow { width: 38px; height: 38px; }
  .examples summary { min-height: 44px; }
  .contact-lines a { min-height: 44px; }
  .legal a, .form-notice a { padding-block: 6px; }

  /* פס פעולה תחתון קבוע */
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(20,20,20,.08);
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 1000px; font-weight: 700; font-size: 16px; text-decoration: none; }
  .mobile-bar svg { width: 20px; height: 20px; flex-shrink: 0; }
  .mobile-bar .call { background: var(--white); color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
  .mobile-bar .write { background: var(--green); color: var(--white); }


  .legal p, .legal li { font-size: 16.5px; }
  .legal h2 { font-size: 21px; }
}
