:root {
  --navy: #14305a;
  --navy-2: #1d3f73;
  --orange: #e07b3c;
  --orange-dark: #c9652a;
  --blue: #4aa3e8;
  --green: #5cb85c;
  --green-dark: #489948;
  --text: #1b1f2a;
  --muted: #5d6677;
  --bg: #ffffff;
  --card: #f5f8fc;
  --radius: 22px;
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; top: -40px; right: 16px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- פריסה ---------- */
.page {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
}
/* קשת כתומה דקורטיבית בפינה */
.page::before {
  content: '';
  position: absolute; top: -140px; right: -260px;
  width: 360px; height: 560px;
  border: 46px solid var(--orange);
  border-radius: 50%;
  z-index: -1;
}
body { position: relative; }

/* ---------- כותרת ראשית ---------- */
.hero { text-align: center; }
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -1px;
}
.hero__subtitle {
  margin-top: 18px;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
}
.underline {
  display: inline-block;
  background: linear-gradient(var(--blue), var(--blue)) no-repeat bottom / 100% 5px;
  padding-bottom: 6px;
}
.hero__about {
  margin: 28px auto 0;
  max-width: 720px;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}
.brand-name { color: var(--blue); }
.hero__note { margin-top: 22px; color: var(--blue); font-size: 1.05rem; }

/* החותמת ממוקמת מתחת לפסקה, ממורכזת */
.stamp {
  margin: 22px auto 0;
  width: 140px; height: 110px;
  border: 4px solid var(--orange);
  border-radius: 12px;
  transform: rotate(-8deg);
  display: grid; place-items: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.15;
  background: #fff;
}

/* ---------- יתרונות ---------- */
.features {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.feature__icon {
  position: relative;
  width: 104px; height: 104px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
}
.feature__icon::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 10px solid var(--blue);
  border-left-color: #cfe6fa;
}
.feature__icon svg {
  width: 52px; height: 52px;
  fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
}
.feature__icon--text span { font-size: 2rem; font-weight: 900; color: var(--navy); }
.feature h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.25; }

/* ---------- כותרות סעיפים ---------- */
.section-title {
  text-align: center;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 22px;
}
.services, .reviews, .gallery { margin-top: 64px; }

/* ---------- תחומי שירות ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.service {
  background: var(--card);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 5px solid var(--orange);
}
.service__emoji { font-size: 2rem; }
.service h3 { color: var(--navy); font-size: 1.2rem; font-weight: 800; }
.service p { color: var(--muted); flex: 1; }
.service__link { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.service__link:hover { text-decoration: underline; }

/* ---------- אמון ---------- */
.trust {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #dce5f0;
  border-radius: 18px;
  overflow: hidden;
}
.trust__item {
  background: var(--navy);
  color: #fff;
  padding: 22px 12px;
  text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.trust__item strong { font-size: 1.6rem; font-weight: 900; color: var(--orange); line-height: 1.2; }

/* ---------- ביקורות ---------- */
.reviews__sample-note {
  text-align: center;
  background: #fff4e5;
  border: 1px dashed var(--orange);
  color: #8a4b12;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 700;
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.review {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(20, 48, 90, .1);
  padding: 20px;
}
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-2); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.review__name { font-weight: 700; }
.review__stars { color: #f4b400; letter-spacing: 2px; }
.review__text { color: var(--muted); }
.review--sample { border: 2px dashed #f0c49d; }

/* ---------- גלריה ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery__grid img, .gallery__placeholder {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px;
}
.gallery__placeholder {
  background: repeating-linear-gradient(45deg, #eef3f9, #eef3f9 12px, #e3ebf5 12px, #e3ebf5 24px);
  color: var(--muted);
  display: grid; place-items: center; text-align: center; padding: 8px;
}

/* ---------- כרטיס יצירת קשר ---------- */
.contact {
  position: sticky;
  top: 24px;
}
.contact__inner {
  background: var(--navy);
  color: #fff;
  border-radius: 28px 28px 28px 28px;
  border-top-left-radius: 48px;
  padding: 32px 28px;
  text-align: center;
  display: flex; flex-direction: column; gap: 14px;
}
.logo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.logo svg { width: 150px; height: 150px; }
.logo__text { font-weight: 900; font-size: 1.3rem; }
.logo img { width: 170px; height: auto; }
.contact__tagline { color: var(--blue); font-size: 1.2rem; line-height: 1.3; }
.contact__call-title { font-size: 1.7rem; line-height: 1.15; margin-top: 6px; }
.contact__call-title strong { font-weight: 900; }
.contact__phone {
  color: var(--orange);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 900;
  text-decoration: none;
  line-height: 1;
}
.contact__form-title { font-size: 1.45rem; line-height: 1.25; margin-top: 8px; }

.lead-form { display: flex; flex-direction: column; gap: 12px; text-align: right; }
.lead-form input[type="text"], .lead-form input[type="tel"] {
  width: 100%;
  border: 0; border-radius: 10px;
  padding: 14px 16px;
  font: inherit; font-size: 1.05rem;
  color: var(--text);
}
.lead-form input[aria-invalid="true"] { box-shadow: 0 0 0 3px #ff8a80; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; line-height: 1.4; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.consent a { color: var(--orange); }
.form-error { color: #ffb4a8; font-weight: 700; min-height: 0; }
.form-error:empty { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 10px;
  padding: 13px 18px;
  font: inherit; font-size: 1.25rem; font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .7; cursor: wait; }
.btn--orange { background: var(--orange); color: var(--navy); }
.btn--orange:hover { background: var(--orange-dark); }
.btn--green { background: var(--green); color: #fff; font-weight: 500; }
.btn--green:hover { background: var(--green-dark); }
.contact .btn--green { margin-top: 18px; }
.wa-icon { width: 24px; height: 24px; fill: currentColor; }

/* ---------- פוטר ---------- */
.footer {
  text-align: center;
  color: var(--muted);
  padding: 24px 16px 32px;
  font-size: .95rem;
}

/* ---------- סרגל מובייל ---------- */
.mobile-bar { display: none; }

/* ---------- מסך תודה ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10, 20, 40, .6);
  display: grid; place-items: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal__box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 420px; width: 100%;
  padding: 32px 24px 26px;
  text-align: center;
  display: flex; flex-direction: column; gap: 10px;
}
.modal__box h2 { color: var(--navy); font-size: 1.7rem; font-weight: 900; }
.modal__check {
  width: 64px; height: 64px; margin: 0 auto;
  border-radius: 50%; background: var(--green); color: #fff;
  font-size: 2rem; display: grid; place-items: center;
}
.modal__close {
  position: absolute; top: 10px; left: 12px;
  border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--muted);
}
.modal .btn { margin-top: 8px; }

/* ---------- רספונסיבי ---------- */
@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    padding: 28px 16px 24px;
    gap: 32px;
  }
  .page::before { display: none; }
  /* במובייל הכרטיס מופיע אחרי הכותרת – לפני שאר התוכן */
  .contact { position: static; order: 0; }
  .content { display: contents; }
  .hero { order: -1; }
  .features, .services, .trust, .reviews, .gallery { order: 1; }
  .features, .services, .trust, .reviews, .gallery, .hero { min-width: 0; }
  .features, .trust { margin-top: 0; }
  .services, .reviews, .gallery { margin-top: 8px; }
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: 1fr 1fr; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
  }
  .mobile-bar__btn {
    padding: 15px 8px; text-align: center; text-decoration: none;
    font-weight: 800; font-size: 1.1rem; color: #fff;
  }
  .mobile-bar__btn--call { background: var(--orange); color: var(--navy); }
  .mobile-bar__btn--wa { background: var(--green); }
  body { padding-bottom: 58px; }
}

@media (max-width: 480px) {
  .feature__icon { width: 84px; height: 84px; }
  .feature__icon::before { border-width: 8px; }
  .feature__icon svg { width: 40px; height: 40px; }
  .feature h3 { font-size: 1.05rem; }
  .gallery__grid { grid-template-columns: 1fr; }
  .contact__inner { padding: 26px 18px; }
}

/* ---------- אנימציות ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drawUnderline {
  from { background-size: 0 5px; }
  to   { background-size: 100% 5px; }
}
@keyframes stampIn {
  0%   { opacity: 0; transform: scale(1.8) rotate(-24deg); }
  70%  { opacity: 1; transform: scale(.94) rotate(-6deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}
@keyframes wobble {
  0%, 86%, 100% { transform: rotate(-8deg); }
  90% { transform: rotate(-3deg) scale(1.06); }
  95% { transform: rotate(-12deg) scale(1.06); }
}
@keyframes spinIn {
  from { transform: rotate(-270deg); }
  to   { transform: rotate(0); }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(92, 184, 92, .6); }
  70%  { box-shadow: 0 0 0 14px rgba(92, 184, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 184, 92, 0); }
}
@keyframes ring {
  0%, 88%, 100% { transform: rotate(0); }
  90% { transform: rotate(-4deg); }
  92% { transform: rotate(4deg); }
  94% { transform: rotate(-3deg); }
  96% { transform: rotate(2deg); }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: none; }
}
@keyframes drive {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: no-preference) {
  /* כניסת הכותרת בטעינה */
  .hero__title    { animation: fadeUp .7s ease-out both; }
  .hero__subtitle { animation: fadeUp .7s .15s ease-out both; }
  .underline      { animation: drawUnderline .8s .7s ease-out both; background-position: bottom right; }
  .hero__about p  { animation: fadeUp .7s .3s ease-out both; }
  .hero__note     { animation: fadeUp .7s .45s ease-out both; }
  .stamp          { animation: stampIn .6s 1s cubic-bezier(.3, 1.4, .5, 1) both, wobble 5s 2s ease-in-out infinite; }
  .contact__inner { animation: fadeUp .7s .2s ease-out both; }
  .mobile-bar     { animation: slideUp .5s 1.2s ease-out both; }

  /* תשומת לב לכפתורי פעולה */
  .contact .btn--green, .mobile-bar__btn--wa { animation: pulse 2.2s 2s infinite; }
  .contact__phone { display: inline-block; animation: ring 4s 1.5s ease-in-out infinite; }
  .logo svg       { animation: drive 2.4s ease-in-out infinite; }

  /* חשיפה בגלילה – רק כש-JS פעיל, כדי שהתוכן יוצג גם בלעדיו */
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease-out, transform .6s ease-out;
    transition-delay: var(--d, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .feature.reveal.is-visible .feature__icon::before { animation: spinIn 1s var(--d, 0s) ease-out both; }

  /* ריחוף */
  .service { transition: transform .2s ease, box-shadow .2s ease; }
  .service:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(20, 48, 90, .14); }
  .feature:hover .feature__icon::before { transform: rotate(180deg); transition: transform .5s ease; }
  .btn--orange:hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
