/* משותף לכל דפי האתר: צבעים, טיפוגרפיה, כותרת עליונה, פוטר, טופס וכפתורים. */

@font-face {
  font-family: 'Rubik'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/rubik-hebrew-wght-normal.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/rubik-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #1b1d1a;
  --muted: #5c6059;
  --line: #e6e5e0;
  --accent: #2c6a4f;          /* צבע ההדגשה היחיד */
  --accent-ink: #ffffff;
  --danger: #b3261e;
  --ph-bg: #ffe873;           /* מצייני מקום: לא חלק מהעיצוב, נעלמים כשממלאים */
  --ph-ink: #4a3800;
  --header-h: 64px;
  --radius: 20px;
  --gutter: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Rubik', system-ui, 'Segoe UI', Arial, sans-serif;
  font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; top: 8px; inset-inline-start: 8px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- מציין מקום ---------- */
.ph {
  background: var(--ph-bg); color: var(--ph-ink);
  font-size: .8em; font-weight: 600; line-height: 1.3; letter-spacing: 0;
  padding: .12em .5em; border-radius: 6px; outline: 1.5px dashed var(--ph-ink);
  outline-offset: -1.5px; white-space: nowrap; display: inline-block; vertical-align: middle;
}

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- כותרת עליונה ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-brand { font-weight: 700; font-size: 18px; text-decoration: none; display: flex; align-items: center; gap: 12px; line-height: 1.15; min-width: 0; }
.site-brand-text { display: grid; }
.site-brand-text small { font-size: 12px; font-weight: 400; color: var(--muted); }
.site-logo { height: 44px; width: auto; border-radius: 10px; background: #000; flex: none; }
.site-footer-brand { display: flex; align-items: center; gap: 14px; }
.contact-who { margin-top: 28px; font-size: 22px; font-weight: 700; display: grid; }
.contact-who small { font-size: 15px; font-weight: 400; color: var(--muted); }
.contact-banner { margin-top: 32px; width: 100%; max-width: 520px; height: auto; border-radius: var(--radius); }
.contact-phone { margin-top: 16px; font-size: 24px; font-weight: 600; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.site-header nav a:not(.btn):hover { text-decoration: underline; }

/* ---------- יצירת קשר ---------- */
.contact { display: grid; gap: clamp(32px, 6vw, 88px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; }
.contact-lead { color: var(--muted); margin-top: 16px; max-width: 34ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid #8a8e86; border-radius: 12px; min-height: 52px; padding: 0 16px; width: 100%;
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; min-height: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.form-note { color: var(--muted); font-size: 14px; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-kind="error"] { color: var(--danger); }
.form-status[data-kind="ok"] { color: var(--accent); }
.hp { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }

/* ---------- פוטר ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 40px var(--gutter) 48px;
  display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between;
  color: var(--muted); font-size: 15px;
}
.site-footer strong { color: var(--ink); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- כפתורי וואטסאפ וחיוג הצמודים לתחתית בטלפון ---------- */
.mobile-cta { display: none; }
@media (max-width: 899px) {
  .site-header nav a:not(.btn) { display: none; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; inset: auto 0 0 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { min-height: 48px; padding: 0 10px; min-width: 0; gap: 7px; font-size: 16px; }
  .mobile-cta .ph { font-size: 11px; }
  body { padding-bottom: calc(69px + env(safe-area-inset-bottom)); }
}

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

bdi { white-space: nowrap; }
.btn { white-space: nowrap; }
.site-header .btn { flex: none; }
@media (max-width: 899px) {
  .site-brand { font-size: 15px; gap: 10px; }
  .site-logo { height: 38px; }
  .site-header { gap: 10px; }
}
