/* ===== Reset & tokens ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand — sampled from the Innovate logo */
  --orange: #ff6100;
  --orange-deep: #d94f00;
  --orange-ink: #b8460a;
  --ink: #14181a;
  --body: #4f585b;
  --muted: #6b7477;
  --faint: #8b9295;

  /* Warm, light surfaces — the logo lives on white */
  --bg: #ffffff;
  --bg-tint: #fdf7f2;
  --bg-soft: #fff0e4;
  --line: #efe4d9;
  --line-2: #e8dcd1;

  --font-display: 'Rubik', 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-body: 'Assistant', 'Segoe UI', Tahoma, Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 14px 36px rgba(20, 24, 26, 0.09);
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
svg { width: 22px; height: 22px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -0.4px; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); margin-bottom: 14px; }
h3 { font-size: 1.3rem; font-weight: 600; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 56px; }
section { scroll-margin-top: 92px; }
.center { text-align: center; }
.accent { color: var(--orange); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 46px;
}
.note { font-size: 0.86rem; color: var(--faint); font-style: italic; margin-top: 26px; text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  /* גודל ברירת מחדל. בלעדיו כפתור שנכתב בלי מחלקת גודל (btn-small /
     btn-lg / btn-full) יוצא בלי ריפוד, והטקסט גולש מחוץ למסגרת. */
  font-size: 1rem;
  padding: 11px 20px;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 97, 0, 0.32); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fbb59; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, 0.32); }
.btn-outline { border-color: rgba(20, 24, 26, 0.18); color: var(--ink); background: rgba(255, 255, 255, 0.72); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: #fff; transform: translateY(-2px); }
.btn-small { font-size: 1rem; padding: 11px 20px; }
.btn-small svg { width: 18px; height: 18px; }
.btn-lg { font-size: 1.05rem; padding: 15px 28px; }
.btn-full { width: 100%; padding: 16px; font-size: 1.05rem; }

/* ===== Header ===== */
/* No backdrop-filter / filter / transform here: any of them would make the
   header a containing block for its position:fixed descendants, and the
   mobile nav panel (.main-nav) would collapse to the header's height
   instead of covering the viewport. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(20, 24, 26, 0.07); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img { height: 58px; width: auto; }

.main-nav ul { display: flex; gap: 26px; }
.main-nav a { font-weight: 600; font-size: 1rem; color: #3f484b; padding: 4px 0; position: relative; }
.main-nav a::after {
  content: '';
  position: absolute;
  right: 0; left: 0; bottom: -3px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* כניסת לקוחות מופיעה פעמיים: ככפתור בהדר במסך רחב, וכפריט בתפריט
   הנפתח בטלפון — שם ההדר מתכווץ ואין מקום לכפתור נוסף. רק אחת מהן
   נראית בכל רגע. */
.portal-link { white-space: nowrap; }
.portal-link svg { width: 17px; height: 17px; }
.nav-portal { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 104px;
  text-align: center;
  background-color: var(--bg-tint);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(255,246,238,0.78) 52%, rgba(255,255,255,0.93) 100%),
    url('../images/hero-plan.jpg');
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), #ffb066);
}
.hero-inner { position: relative; z-index: 1; }
.hero-logo { height: clamp(96px, 13vw, 150px); width: auto; margin: 0 auto 22px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: 6px;
  margin-bottom: 14px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.1vw, 1.38rem);
  font-weight: 500;
  color: var(--body);
  margin-bottom: 10px;
}
.hero-sub { color: var(--orange-ink); font-weight: 600; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ===== About ===== */
.about { padding: 86px 0; }
.about-grid { display: flex; align-items: center; gap: 56px; margin-top: 26px; }
.about-text { flex: 1 1 0; }
/* One sentence per line, tight leading — reads as a list, not a wall of text. */
.about-text p { font-size: 1.12rem; line-height: 1.5; color: var(--body); margin-bottom: 7px; }
.about-text p:last-child { margin-bottom: 0; }

.about-stats { flex: 0 0 380px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.stat { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 14px; padding: 26px 18px; text-align: center; }
.stat-wide { grid-column: span 2; padding: 22px 18px; }
.stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--orange); line-height: 1.1; }
.stat-num-sm { font-size: 1.45rem; line-height: 1.25; }
.stat-label { display: block; font-size: 0.93rem; color: var(--muted); margin-top: 6px; }

/* ===== Services ===== */
.services { padding: 86px 0 94px; background: var(--bg-tint); }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f5d9c2; }
.card-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  background: var(--bg-soft);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 25px; height: 25px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 1rem; color: var(--muted); }

.card-cta {
  background: linear-gradient(135deg, var(--orange), #ff8a3d);
  border-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}
.card-cta:hover { box-shadow: 0 14px 36px rgba(255, 97, 0, 0.3); border-color: transparent; }
.card-cta h3, .card-cta p { color: #fff; margin: 0; }
.card-cta p { opacity: 0.92; }
.card-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.card-link svg { width: 18px; height: 18px; }
.card-link:hover { gap: 12px; }

/* ===== Portfolio ===== */
.portfolio { padding: 86px 0 94px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shot {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-tint);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.shot:hover img { transform: scale(1.07); }
.shot::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 24, 26, 0.72) 0%, rgba(20, 24, 26, 0.12) 42%, transparent 68%);
}
.shot-cap {
  position: absolute;
  right: 20px; bottom: 16px;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ===== Customers =====
   The section is commented out in index.html until client logos exist.
   Styles are kept here so uncommenting it is all that's needed. */
.customers { padding: 78px 0 84px; background: var(--bg-tint); }
.customers-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.customer-slot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c2b8ae;
  font-family: var(--font-display);
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(20, 24, 26, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}
.customer-slot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.customer-slot img { max-width: 78%; max-height: 60%; object-fit: contain; }

/* ===== CTA band ===== */
/* Solid colour under the photo: white text must never land on an unpainted
   background (background-attachment: fixed also breaks on iOS Safari). */
.cta-band {
  position: relative;
  padding: 76px 0;
  text-align: center;
  color: #fff;
  background-color: #14181a;
  background-image:
    linear-gradient(180deg, rgba(20,24,26,0.76), rgba(20,24,26,0.84)),
    url('../images/band-workshop.jpg');
  background-size: cover;
  background-position: center;
}
.cta-inner h2 { color: #fff; margin-bottom: 10px; }
.cta-inner p { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; margin-bottom: 30px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ===== Contact ===== */
.contact { padding: 86px 0 94px; }
.contact-grid { display: flex; gap: 48px; align-items: flex-start; margin-top: 42px; }
.contact-details { flex: 1 1 0; }
.contact-details h3 { margin-bottom: 22px; }

.contact-list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px 18px;
  transition: border-color var(--transition), background var(--transition);
}
.contact-list li:hover { border-color: #f3cfae; background: #fffcf9; }
.ci {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci svg { width: 20px; height: 20px; }
.ci-orange { background: var(--bg-soft); color: var(--orange); }
.ci-green { background: #e8f8ee; color: #1faa55; }
.ci-muted { background: #f5f1ed; color: #a9a29b; }
.ci-label { display: block; font-size: 0.86rem; color: var(--faint); }
.ci-value { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
a.ci-value:hover { color: var(--orange); }
.ci-todo { color: #a9a29b; font-size: 1.02rem; }
/* שני מספרי טלפון תחת תווית אחת — זה לצד זה, ויורדים שורה במסך צר */
.ci-phones { display: flex; flex-wrap: wrap; gap: 0 18px; }
/* כתובת האימייל ארוכה מהערכים האחרים ולא נכנסת בשורה במובייל */
.ci-email { font-size: 1rem; word-break: break-all; }

.socials { display: flex; gap: 11px; }
.socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.socials svg { width: 19px; height: 19px; }
.socials a:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

.contact-form {
  flex: 0 0 440px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form h3 { margin-bottom: 4px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 0.93rem; font-weight: 600; color: var(--body); }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 97, 0, 0.14);
}
.contact-form textarea {
  resize: vertical;        /* גרירה אופקית הייתה שוברת את רוחב הטופס */
  min-height: 84px;
  line-height: 1.55;
}
.contact-form textarea::placeholder { color: #a9a29b; font-size: 0.94rem; }
/* התווית היא flex בעמודה, אז כל ילד תופס שורה. עוטפים את שני חלקי
   הכיתוב יחד כדי ש"(לא חובה)" יישאר באותה שורה. */
.label-row { display: block; }
.label-optional { font-weight: 400; color: var(--faint); font-size: 0.86rem; }

.form-status { font-size: 0.95rem; color: var(--orange-ink); min-height: 1.3em; line-height: 1.5; }
.form-status.is-ok {
  color: #14733f;
  background: #e9f7ef;
  border: 1px solid #b9e3c9;
  border-radius: 9px;
  padding: 10px 13px;
}
.form-status.is-error {
  color: #93280f;
  background: #fdece7;
  border: 1px solid #f4c4b4;
  border-radius: 9px;
  padding: 10px 13px;
}
/* nowrap כדי שמספר הטלפון לא יישבר באמצע בין שתי שורות —
   בעמוד RTL שבר כזה מציג את המקף בצד הלא נכון ("‎-052"). */
.form-status a { color: inherit; font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* מלכודת ספאם — מוסתרת מהעין אך קיימת ב-DOM עבור בוטים.
   לא display:none, כי חלק מהבוטים מדלגים על שדות מוסתרים כך.
   וגם לא left:-9999px — בעמוד RTL זה מרחיב את רוחב הגלילה של המסמך
   ודוחף את כל התוכן אל מחוץ למסך. clip מסתיר בלי להשפיע על הפריסה. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #9aa2a5; padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-mark { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; }
.footer-meta { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; flex-wrap: wrap; }
.footer-meta a:hover { color: #fff; }

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
  z-index: 800;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 15, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; }
.lightbox-close {
  position: absolute;
  top: 22px; left: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--orange); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shot img { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .container { padding: 0 36px; }
  .about-grid, .contact-grid { flex-direction: column; align-items: stretch; gap: 36px; }
  .about-stats, .contact-form { flex-basis: auto; }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0; bottom: 0; right: 0;
    width: min(78vw, 320px);
    background: #fff;
    border-left: 1px solid var(--line);
    padding: 96px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 950;
  }
  .main-nav.open { transform: none; box-shadow: -10px 0 40px rgba(20, 24, 26, 0.13); }
  .main-nav ul { flex-direction: column; gap: 22px; }
  .main-nav a { font-size: 1.12rem; }
  .nav-toggle { display: flex; }

  .portal-link { display: none; }
  .nav-portal {
    display: block;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .nav-portal a { color: var(--orange); font-weight: 700; }
}

@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .hero { padding: 52px 0 60px; }
  .about, .services, .portfolio, .customers, .contact { padding: 54px 0 60px; }
  .cta-band { padding: 54px 0; }
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .customers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo img { height: 46px; }
  .btn-label { display: none; }
  .btn-small { padding: 11px 15px; }
  .hero h1 { letter-spacing: 3px; }
  .hero-ctas .btn, .cta-buttons .btn { width: 100%; }
  .contact-form { padding: 24px; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; left: 18px; }
  .whatsapp-float svg { width: 25px; height: 25px; }
}
