/* =====================================================================
   BASE STYLESHEET - שייך לכל הדפים באתר (דף הבית + כל דפי השירות)
   כולל: reset, צבעים, נאב, תפריט נייד, המבורגר, פוטר, בסיס לסקשנים.
   כל מה שספציפי לדף מסוים (הירו, page-header, article-section וכו')
   נמצא בקובץ הסגנון הפרטי של הדף או ב-assets/service-page.css.
   ===================================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  background: #f4f8fb;
  color: #1a2d3e;
  direction: rtl;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --navy:    #ffffff;
  --navy2:   #f4f8fb;
  --navy3:   #e8f2fb;
  --gold:    #1a7fc1;
  --gold2:   #1565a8;
  --white:   #1a2d3e;
  --gray:    #5a7a90;
  --light:   #1a2d3e;
  --blue:    #1a7fc1;
  --blue2:   #1565a8;
  --sky:     #e8f2fb;
  --border:  #cde0f0;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #cde0f0;
  padding: 0 1.5rem;
  box-shadow: 0 2px 16px rgba(26,127,193,0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-icon img { width: 100%; height: 100%; display: block; }
.logo-text { font-size: 1.1rem; font-weight: 700; color: #1a2d3e; line-height: 1.2; }
.logo-sub { font-size: 0.7rem; color: var(--gray); }

.nav-links { display: flex; align-items: center; list-style: none; gap: 0.05rem; flex-wrap: nowrap; }
.nav-links a {
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a2d3e;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--sky); color: var(--blue); }
.nav-links a.active { color: var(--blue); font-weight: 700; }

/* Nav submenu (dropdown) */
.nav-links li.has-submenu { position: relative; }
.nav-links li.has-submenu > a::after { content: '▾'; font-size: 0.65rem; margin-right: 0.25rem; }
.submenu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(26,127,193,0.16);
  min-width: 250px;
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 1001;
}
.nav-links li.has-submenu:hover .submenu,
.nav-links li.has-submenu:focus-within .submenu { display: flex; }
.submenu a {
  display: block;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a2d3e;
  border-radius: 6px;
  white-space: normal;
  line-height: 1.4;
}
.submenu a:hover { background: var(--sky); color: var(--blue); }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.nav-phone:hover { background: var(--blue2); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #1a2d3e;
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; right: 0; left: 0; bottom: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  z-index: 999;
  padding: 1rem;
  padding-bottom: 2rem;
  flex-direction: column;
  gap: 0.3rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 24px rgba(26,127,193,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #1a2d3e;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--sky); color: var(--blue); }
.mobile-submenu { display: flex; flex-direction: column; gap: 0.15rem; }
.mobile-submenu a {
  padding: 0.6rem 1rem;
  padding-right: 2.4rem;
  font-size: 0.88rem;
  color: var(--gray);
}
.mobile-submenu a:hover { background: var(--sky); color: var(--blue); }
.mobile-cta {
  margin-top: 0.5rem;
  background: var(--blue) !important;
  color: #ffffff !important;
  text-align: center;
  font-weight: 700 !important;
}

/* ===== SECTION BASE (used on every page) ===== */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #1a2d3e;
  margin-bottom: 1rem;
}
.section-sub { color: var(--gray); font-size: 1.05rem; max-width: 600px; }

/* ===== FOOTER ===== */
footer { background: #1a2d3e; padding: 3rem 2rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 1rem 0; max-width: 280px; }
.footer-col h2, .footer-col h4 { color: #7ec8f0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: #7ec8f0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ===== MOBILE (shared breakpoints) ===== */
@media (max-width: 1180px) {
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 1.2rem; }
}

/* ===== טפסי יצירת קשר (משותף לכל הדפים) ===== */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.form-status { margin-top: 0.9rem; font-size: 0.88rem; text-align: center; display: none; }
.form-status.success { display: block; color: #1a8a4a; }
.form-status.error { display: block; color: #c0392b; }
button.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }
