/* ==========================================================================
   מוטי בן מנשה — יועץ בטיחות בעבודה
   גיליון סגנון יחיד: משתנים+reset, layout, ואזור־אזור לפי סדר העמוד
   ========================================================================== */

/* ---------- 1. משתנים ---------- */
:root {
  --navy-900: #0D2137;
  --navy-700: #14446E;
  --navy-100: #E3EBF2;
  --amber:    #F5A524;
  --amber-dk: #D98C0B;
  --green:    #2E9E6B;
  --gray-50:  #F4F6F8;
  --gray-900: #1F2933;
  --white:    #FFFFFF;

  --font-heading: 'Heebo', sans-serif;
  --font-body: 'Assistant', sans-serif;

  --header-h: 88px;
  --header-h-scrolled: 64px;
  --hazard-h: 6px;

  --ease-out: cubic-bezier(.22,1,.36,1);
  --dur: 600ms;
  --stagger: 80ms;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-scrolled) + var(--hazard-h) + 12px); }
body, h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--navy-700); }

.section-inner {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
  padding-block: clamp(48px, 8vw, 88px);
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  margin-block-end: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-900);
  opacity: .8;
  max-width: 60ch;
  margin-block-end: 40px;
}

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--amber-dk);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .9rem;
  margin-block-end: 6px;
}

/* ---------- 3. נגישות ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--amber);
  color: var(--navy-900);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 1000;
  transition: top 200ms var(--ease-out);
}
.skip-link:focus { top: 12px; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 4. כפתורים ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

.btn-amber { background: var(--amber); color: var(--navy-900); }
.btn-amber:hover { background: var(--amber-dk); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,165,36,.35); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-light:hover { border-color: var(--white); transform: translateY(-2px); }

/* ---------- 5. פס אזהרה (חתימת האתר — מופיע פעמיים בלבד) ---------- */
.hazard-stripe {
  height: var(--hazard-h);
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 14px,
    var(--navy-900) 14px 28px
  );
}

/* ---------- 6. Header דביק ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--navy-900);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.site-header.scrolled {
  height: var(--header-h-scrolled);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-block { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: var(--font-heading); font-weight: 700; color: var(--white); font-size: 1.15rem; }
.logo-sub { font-size: .78rem; color: #9FB2C4; }

.main-nav ul { display: flex; gap: 22px; }
.nav-link {
  color: #C9D6E2;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding-block: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms var(--ease-out);
}
.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--white); }
.nav-link.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { color: var(--white); font-weight: 700; font-family: var(--font-heading); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 250ms var(--ease-out), opacity 200ms var(--ease-out);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* תפריט מובייל */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  z-index: 490;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 250ms;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 28px; text-align: center; margin-block-end: 48px; }
.mobile-nav-link { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* ---------- 7. Hero ---------- */
.hero {
  background-color: var(--navy-900);
  background-image:
    linear-gradient(rgba(13,33,55,.92), rgba(13,33,55,.92)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px);
  padding-block: clamp(64px, 12vw, 120px);
  text-align: center;
}
.hero-inner { max-width: 760px; margin-inline: auto; padding-inline: 20px; }
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-block-end: 22px;
}
.hero-byline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--amber);
  letter-spacing: .01em;
  margin-block-end: 18px;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #D7E1EA;
  margin-block-end: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-block-end: 22px; }
.hero-micro { font-size: .92rem; color: #92A6B8; }

/* ---------- 8. פס אמון ---------- */
.trust-bar { background: var(--gray-50); padding-block: clamp(40px, 6vw, 64px); }
.trust-grid {
  max-width: 480px;
  margin-inline: auto;
  padding-inline: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy-700);
}
.stat-label { font-size: .92rem; color: var(--gray-900); opacity: .75; }

/* ---------- 9. למה בכלל צריך יועץ בטיחות ---------- */
.why-section { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.why-card {
  background: var(--navy-100);
  border-radius: 12px;
  padding: 28px;
}
.why-card h3 { font-size: 1.15rem; margin-block-end: 10px; }
.why-card p { opacity: .85; }

.law-alert {
  margin-block-start: 24px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: 14px;
  padding: 32px clamp(20px, 4vw, 40px);
  border-inline-start: 5px solid var(--amber);
}
.law-alert-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .82rem;
  margin-block-end: 8px;
}
.law-alert h3 { color: var(--white); font-size: 1.25rem; margin-block-end: 12px; }
.law-alert p:not(.law-alert-tag) { color: #D7E1EA; max-width: 68ch; margin-block-end: 20px; }

/* ---------- 10. שירותים (שלטי בטיחות) ---------- */
.services-section { background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px 24px;
  position: relative;
  box-shadow: 0 2px 10px rgba(13,33,55,.06);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(13,33,55,.14); }
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 20px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--white);
}
.service-card:nth-child(3n+2) .service-icon { background: linear-gradient(135deg, var(--amber), var(--amber-dk)); color: var(--navy-900); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.08rem; margin-block-end: 10px; }
.service-card p { font-size: .95rem; opacity: .82; }

/* ---------- 11. אודות מוטי ---------- */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.photo-frame {
  aspect-ratio: 4 / 5;
  background: var(--navy-900);
  border-radius: 16px;
  overflow: hidden;
  max-width: 340px;
  margin-inline: auto;
  box-shadow: 0 12px 32px rgba(13,33,55,.18);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.about-text .section-title { margin-block-start: 0; }
.about-text p { margin-block-end: 18px; }

.cert-card {
  background: var(--navy-100);
  border-radius: 12px;
  padding: 24px;
  margin-block-start: 8px;
}
.cert-card h3 { font-size: 1.05rem; margin-block-end: 14px; }
.cert-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block-end: 10px;
  font-size: .95rem;
}
.check-icon { color: var(--green); font-weight: 700; flex-shrink: 0; }
.cert-card-link {
  display: inline-block;
  margin-block-start: 4px;
  color: var(--navy-700);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: underline;
}
.cert-card-link:hover { color: var(--amber-dk); }

/* ---------- 11b. הסמכות ותעודות (קרוסלה) ---------- */
.certificates-section { background: var(--white); }
.cert-carousel { display: flex; align-items: center; gap: 12px; }
.cert-carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.cert-carousel-btn svg { width: 20px; height: 20px; }
.cert-carousel-btn:hover { background: var(--amber-dk); }
.cert-carousel-btn:active { transform: scale(.92); }

.cert-carousel-track {
  flex: 1;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 4px;
}
.cert-carousel-track::-webkit-scrollbar { display: none; }

.cert-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(78vw, 260px);
  background: var(--gray-50);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(13,33,55,.08);
}
.cert-slide img { width: 100%; aspect-ratio: 0.707; object-fit: cover; }
.cert-slide figcaption { padding: 14px 16px 18px; }
.cert-slide strong { display: block; font-family: var(--font-heading); font-size: .95rem; color: var(--navy-700); margin-block-end: 4px; }
.cert-slide span { display: block; font-size: .82rem; opacity: .75; }

.cert-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-block-start: 24px; }
.cert-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-100); transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-out); }
.cert-dot.active { background: var(--amber); transform: scale(1.3); }

/* ---------- 11c. רגעים מהשטח (גלריה) ---------- */
.gallery-section { background: var(--gray-50); }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(13,33,55,.08);
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item figcaption { padding: 12px 16px; font-size: .88rem; color: var(--gray-900); opacity: .75; }

/* ---------- 12. איך זה עובד ---------- */
.process-section { background: var(--gray-50); }
.process-list { position: relative; max-width: 640px; margin-inline: auto; }
.process-list::before {
  content: "";
  position: absolute;
  inset-inline-start: 21px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--navy-100);
}
.process-step {
  position: relative;
  display: flex;
  gap: 20px;
  padding-inline-start: 0;
  margin-block-end: 32px;
}
.process-step:last-child { margin-block-end: 0; }
.process-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: 1.1rem;
}
.process-body h3 { font-size: 1.1rem; margin-block-end: 6px; }
.process-body p { opacity: .82; }

/* ---------- 13. למי זה מתאים ---------- */
.who-for-section { background: var(--white); }
.industry-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.industry-strip li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 130px;
  text-align: center;
}
.industry-strip svg { width: 40px; height: 40px; color: var(--navy-700); }
.industry-strip span { font-size: .88rem; opacity: .85; }

/* ---------- 14. למה לעבוד איתי ---------- */
.why-me-section { background: var(--navy-900); }
.why-me-section .section-title { color: var(--white); }
.why-me-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.why-me-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 26px;
}
.why-me-card h3 { color: var(--white); font-size: 1.1rem; margin-block-end: 10px; }
.why-me-card p { color: #C3D1DD; }

/* ---------- 16. שאלות נפוצות (אקורדיון) ---------- */
.faq-section { background: var(--white); }
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--navy-100); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  text-align: start;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-700);
}
.faq-arrow { width: 20px; height: 20px; flex-shrink: 0; transition: transform 250ms var(--ease-out); color: var(--amber-dk); }
.faq-item[data-open="true"] .faq-arrow { transform: rotate(180deg); }

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms var(--ease-out);
}
.faq-item[data-open="true"] .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer { overflow: hidden; }
.faq-answer p { padding-block-end: 22px; opacity: .82; max-width: 65ch; }

/* ---------- 17. צרו קשר ---------- */
.contact-section { background: var(--navy-900); }
.contact-section .section-title { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }

.contact-cta-text { color: #D7E1EA; max-width: 46ch; margin-block-end: 28px; }
.contact-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.contact-info-list { display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-label { color: #8FA3B6; font-size: .85rem; }
.contact-info-list a { color: var(--white); font-weight: 600; }
.contact-info-list span:not(.contact-label) { color: #D7E1EA; }

/* ---------- 18. פוטר ---------- */
.site-footer { background: var(--navy-900); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-block: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-nav, .footer-contact, .footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a, .footer-contact a, .footer-legal a { color: #B7C6D3; font-size: .92rem; }
.footer-nav a:hover, .footer-contact a:hover, .footer-legal a:hover { color: var(--white); }
.footer-copyright {
  text-align: center;
  color: #6F859A;
  font-size: .82rem;
  padding-block: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ---------- 19. אלמנטים צפים ---------- */
.whatsapp-float {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: scale(.8);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 250ms;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float.visible { opacity: 1; visibility: visible; transform: scale(1); }
.whatsapp-float.pulse { animation: wa-pulse 6s ease-in-out infinite; }

@keyframes wa-pulse {
  0%, 92%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,.25); }
  94% { box-shadow: 0 6px 20px rgba(0,0,0,.25), 0 0 0 10px rgba(37,211,102,.25); }
  96% { box-shadow: 0 6px 20px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,0); }
}

.mobile-cta-bar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 400;
  height: 58px;
}
.mobile-cta-half {
  width: 50%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
}
.mobile-cta-half svg { width: 20px; height: 20px; }
.mobile-cta-call { background: var(--navy-700); }
.mobile-cta-whatsapp { background: #25D366; }

/* ---------- 20. הנפשות: fade-up ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* מובייל: הצגת הפס התחתון והתאמת ריווח לכפתור וואטסאפ */
@media (max-width: 767px) {
  .mobile-cta-bar { display: flex; }
  body { padding-block-end: 58px; }
  .whatsapp-float { display: none; }
  .main-nav { display: none; }
  .header-actions { display: none; }
  .hamburger { display: flex; }
}

/* טאבלט ומעלה */
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-me-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* דסקטופ */
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 340px 1fr; align-items: center; }
  .contact-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .cert-slide { width: 280px; }
}
