/* לזר ב.י. מדידות הנדסיות - עיצוב האתר
   צבעים נבדקו לניגודיות AA (ת"י 5568 / WCAG 2.1) */
:root {
  --ink: #0f2a44;        /* כחול-לילה: טקסט וכותרות */
  --ink-2: #1d3f60;
  --paper: #f7f5f0;      /* רקע נייר */
  --white: #ffffff;
  --tint: #ece8df;
  --muted: #535c68;      /* 6.3:1 על paper */
  --accent: #e8590c;     /* כתום סימון - לקישוט ולאלמנטים גדולים בלבד */
  --accent-text: #a63c06;/* כתום לטקסט: 6:1 על לבן */
  --wa: #075e54;         /* ירוק וואטסאפ כהה: 7.9:1 עם לבן */
  --line: #d6d0c4;
  --focus: #ffbf47;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,42,68,.06), 0 8px 24px rgba(15,42,68,.07);
  --font: "Heebo", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

/* נגישות */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; right: 1rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: .75rem 1.25rem;
  border-radius: 0 0 10px 10px; font-weight: 700;
}
.skip-link:focus { top: 0; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
  border-radius: 4px;
}

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2.5rem); }

/* כותרת עליונה */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 46px; height: 46px; flex: none; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.25rem; font-weight: 800; }
.brand-text span { font-size: .9rem; color: var(--muted); }
nav { margin-inline-start: auto; }
.menu { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: .5rem .8rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.menu a:hover { background: var(--tint); }
.menu-toggle { display: none; }
.header-phone {
  font-weight: 700; text-decoration: none; color: var(--white);
  background: var(--ink); padding: .55rem 1rem; border-radius: 999px; white-space: nowrap;
  direction: ltr; unicode-bidi: isolate;
}
.header-phone:hover { background: var(--ink-2); }

/* כפתורים */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn svg { width: 22px; height: 22px; }
.btn:hover { transform: translateY(-1px); }
.btn-whatsapp { background: var(--wa); color: var(--white); }
.btn-whatsapp:hover { background: #054a42; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* HERO */
.hero { position: relative; overflow: hidden; padding: 5.5rem 0 4.5rem; }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; color: #c9c1b1; z-index: 0; }
.contours .stakes circle { fill: var(--accent); }
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  font-size: .9rem; font-weight: 700; letter-spacing: .02em;
  color: var(--accent-text); margin-bottom: .75rem;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; max-width: 14ch; letter-spacing: -.01em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 46ch; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 3rem; }
.trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 1rem;
  list-style: none; padding: 0; margin: 0;
}
.trust li {
  background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1.1rem; display: flex; flex-direction: column;
}
.trust strong { font-size: 1.35rem; font-weight: 800; }
.trust span { font-size: .95rem; color: var(--muted); }

/* סקשנים */
.section { padding: 5rem 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #eef2f6; }
.section-dark .eyebrow { color: #ffb38a; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.muted { color: var(--muted); }
.nationwide { background: var(--white); border-inline-start: 4px solid var(--accent); padding: 1rem 1.2rem; border-radius: 8px; max-width: 70ch; }
.tag { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--accent-text); background: #fdebe1; border-radius: 999px; padding: .1rem .7rem; margin: -.2rem 0 .6rem !important; }

.group-title {
  font-size: 1.15rem; font-weight: 700; margin: 2.5rem 0 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 1rem; list-style: none; padding: 0; margin: 0;
}
.cards-wide { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.card h4 { font-size: 1.1rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card-dark { background: var(--ink); color: #eef2f6; border-color: var(--ink); }
.card-dark p { color: #c9d4df; }

/* תהליך */
.steps {
  counter-reset: step; list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.steps li {
  counter-increment: step; position: relative;
  background: var(--white); border-radius: var(--radius); padding: 1.5rem; padding-top: 3.6rem;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; top: 1.1rem; right: 1.5rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white); font-weight: 800;
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }

/* עבודות */
.projects {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  list-style: none; padding: 0; margin: 0;
}
.project-art {
  aspect-ratio: 5 / 3; border-radius: var(--radius); margin-bottom: 1rem;
  background: var(--white); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink); padding: 1rem;
  background-image:
    linear-gradient(var(--tint) 1px, transparent 1px),
    linear-gradient(90deg, var(--tint) 1px, transparent 1px);
  background-size: 20px 20px;
}
.project-art svg { width: 100%; height: 100%; }
.project h3 { font-size: 1.15rem; }
.project p { color: var(--muted); font-size: 1rem; }

/* עלינו */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.about h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.facts { margin: 0; display: grid; gap: .8rem; }
.facts div {
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 1rem 1.2rem;
}
.facts dt { font-weight: 700; color: #ffb38a; }
.facts dd { margin: 0; }

/* אזורים */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.chips li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem 1.1rem; font-weight: 500;
}

/* שאלות נפוצות */
.faq details {
  background: var(--white); border-radius: var(--radius); margin-bottom: .75rem;
  border: 1px solid var(--line);
}
.faq summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; font-size: 1.08rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* צור קשר */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li {
  display: flex; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line);
}
.contact-list .label { width: 5.5rem; flex: none; font-weight: 700; }
.contact-list a[href^="tel"], .contact-list a[href^="https://wa"] { direction: ltr; unicode-bidi: isolate; }

.quote-form {
  background: var(--white); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.form-note { font-size: .95rem; color: var(--muted); }
.field { margin-bottom: 1rem; flex: 1; }
.field-row { display: flex; gap: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .7rem .9rem; min-height: 48px;
  border: 2px solid #8a93a0; border-radius: 10px; background: var(--white);
}
.field input[dir="ltr"] { text-align: right; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.error { color: #b3261e; font-weight: 500; margin: .3rem 0 0; font-size: .95rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; }
.form-status { margin: 1rem 0 0; font-weight: 500; }

/* תחתית */
.site-footer { background: #0a1e31; color: #d3dde7; padding: 2.5rem 0 6rem; }
.site-footer a { color: #ffd2b8; }
.footer-inner { display: grid; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.site-footer .muted { color: #a9b7c5; font-size: .95rem; }

/* סרגל נייד */
.mobile-bar { display: none; }

/* עמודי טקסט (נגישות / פרטיות) */
.doc { padding: 3.5rem 0 5rem; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.doc h2 { font-size: 1.4rem; margin-top: 2rem; }
.doc ul { padding-inline-start: 1.3rem; }
.fill-in { background: #fff3cd; outline: 1px dashed #a66b00; padding: 0 .3em; }

/* רספונסיבי */
@media (max-width: 1000px) {
  .steps, .projects { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .header-phone { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
    font: inherit; font-weight: 700; color: var(--ink);
    background: transparent; border: 2px solid var(--ink); border-radius: 999px; padding: .3rem 1rem;
    cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; }
  .menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
  .menu {
    display: none; position: absolute; inset-inline: 0; top: 72px;
    flex-direction: column; background: var(--paper); padding: .75rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .menu.open { display: flex; }
  .menu a { padding: .8rem; font-size: 1.1rem; }
  .trust { grid-template-columns: 1fr; max-width: 340px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; inset-inline: 0; z-index: 60;
    box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 56px;
    font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--white);
  }
  .mobile-call { background: var(--ink); }
  .mobile-wa { background: var(--wa); }
}
@media (max-width: 560px) {
  .steps, .projects { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .card, .steps li, .quote-form, .trust li { border: 1px solid CanvasText; }
}
@media print {
  .site-header, .mobile-bar, .quote-form, .contours { display: none; }
  body { background: #fff; }
}
