/* =====================================================================
   snapir.co.il - 2026 design refresh (layout only; logic unchanged)
   Used by MasterPage.master. Content pages inside the frame are styled
   by SnapirWebSiteContent/styles.css.
   ===================================================================== */
:root {
  --navy: #0b2a5b;
  --blue: #0763f2;
  --blue-600: #0553cc;
  --sky: #69aff7;
  --tint: #e6f0ff;
  --bg: #f4f8fe;
  --card: #ffffff;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(11, 42, 91, .07);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Heebo', Arial, Helvetica, sans-serif;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
form { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand img { height: 64px; width: auto; display: block; }
.brand-name { font-size: 36px; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.4px; }
.brand-name small { display: block; font-size: 17px; font-weight: 500; color: var(--blue); margin-top: 6px; }
.header-contact { display: flex; gap: 10px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--bg); color: var(--navy);
  text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .15s, color .15s;
}
.chip:hover { background: var(--tint); }
.chip.primary { background: var(--blue); color: #fff; }
.chip.primary:hover { background: var(--blue-600); }
.chip svg { width: 16px; height: 16px; flex: none; }

/* ---------- language switch: עב / EN / FR (header on a computer; .lang-row inside the menu on a phone) ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 32px; padding: 0 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .03em; line-height: 1;
  color: var(--muted); text-decoration: none; transition: background .15s, color .15s;
}
.lang-switch a:hover { color: var(--navy); background: rgba(255, 255, 255, .7); }
.lang-switch a.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(11, 42, 91, .16); cursor: default; }
.lang-switch a:focus-visible, .lang-row a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lang-row { display: none; }

/* ---------- main menu (asp:Menu Menu_Main, RenderingMode=List) ---------- */
.main-nav { border-top: 1px solid var(--line); }
.main-nav .wrap { overflow-x: auto; scrollbar-width: none; }
.main-nav .wrap::-webkit-scrollbar { display: none; }
.main-nav ul { display: flex !important; list-style: none; margin: 0; padding: 0; gap: 2px; float: none !important; width: auto !important; }
.main-nav li { float: none !important; position: static !important; }
.main-nav ul a {
  display: block; padding: 14px 14px 12px;
  color: var(--text) !important; font-weight: 600; font-size: 15px;
  text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav ul a:hover { color: var(--blue) !important; }
.main-nav ul a.selected, .main-nav ul a.is-active { color: var(--blue) !important; border-bottom-color: var(--blue); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 380px at 90% -20%, #d7e7ff 0, rgba(215, 231, 255, 0) 65%),
    radial-gradient(600px 300px at 0% 120%, #e3f0ff 0, rgba(227, 240, 255, 0) 60%),
    linear-gradient(180deg, #fff 0, var(--bg) 100%);
}
.hero-row { display: grid; grid-template-columns: 1.35fr .85fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tint); color: var(--blue);
  font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px;
}
.hero h1 { font-size: 40px; line-height: 1.22; color: var(--navy); margin: 16px 0 12px; font-weight: 800; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lead { font-size: 18px; color: var(--muted); line-height: 1.7; margin: 0 0 18px; max-width: 580px; text-wrap: pretty; }
.hero-points { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); font-size: 15px; }
.hero-points li::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--blue); color: #fff;
  box-shadow: 0 6px 18px rgba(7, 99, 242, .25);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--tint); }
.hero-media { position: relative; justify-self: start; width: 100%; max-width: 410px; }

/* product illustration (sample figures) */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 50px rgba(11, 42, 91, .14);
  overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.mock-bar b { margin-inline-start: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.mock-body { padding: 16px; display: grid; gap: 14px; }
.mock-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-kpis div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.mock-kpis small { display: block; font-size: 11px; color: var(--muted); }
.mock-kpis strong { display: block; font-size: 18px; color: var(--navy); font-weight: 800; direction: ltr; text-align: right; }
.mock-kpis strong.up { color: #0f8a5f; }
.mock-split { display: flex; align-items: center; gap: 16px; }
.mock-donut { width: 104px; height: 104px; flex: none; }
.mock-legend { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 6px; }
.mock-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.mock-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.mock-legend b { margin-inline-start: auto; color: var(--navy); font-weight: 700; }
.mock-chart small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.mock-chart svg { display: block; width: 100%; height: 64px; }
.mock-feed { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.mock-feed li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); }
.mock-feed i { width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f8a5f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center/10px no-repeat; }
.mock-feed span { margin-inline-start: auto; color: #94a3b8; font-size: 11.5px; }

/* ---------- content grid ---------- */
.content-grid {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 260px;
  grid-template-areas: "side main aside";
  gap: 24px; align-items: start;
  padding-top: 28px; padding-bottom: 56px;
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.content-card { grid-area: main; overflow: hidden; }
.content-card iframe { display: block; width: 100%; min-height: 560px; border: 0; background: #fff; }
.nav-path { display: none; }   /* lblNavigate: technical file path - kept in the page, not shown */

/* side menu (asp:Menu Menu_Sub) */
.side { grid-area: side; padding: 10px; position: sticky; top: 140px; }
.side-title { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; padding: 8px 12px 6px; margin: 0; }
.side ul { list-style: none; margin: 0; padding: 0; float: none !important; width: auto !important; }
.side li { float: none !important; position: static !important; }
.side ul a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--text) !important; text-decoration: none;
  font-size: 14px; font-weight: 500; line-height: 1.45;
  transition: background .15s, color .15s;
}
.side ul a:hover { background: var(--bg); color: var(--blue) !important; }
.side ul a.selected, .side ul a.is-active { background: var(--tint); color: var(--blue) !important; font-weight: 700; }
.side ul a:empty { padding: 0; height: 10px; }
/* no visible sub items (most sections, and the home page whose only item is the
   blank admin entry): collapse the column, keep the blank item clickable in the corner */
.side:not(:has(ul a:not(:empty))) {
  position: absolute; top: 28px; right: 24px; width: 26px; height: 26px;
  padding: 0; border: 0; box-shadow: none; background: transparent; overflow: hidden; opacity: 0;
}
.side:not(:has(ul a:not(:empty))) .side-title { display: none; }
.content-grid:not(:has(.side ul a:not(:empty))) {
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-areas: "main aside";
}

/* aside: news + contact */
.aside-col { grid-area: aside; display: grid; gap: 20px; position: sticky; top: 140px; }
.card-title { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 9px; }
.contact-card { padding: 20px; background: linear-gradient(160deg, var(--navy) 0, #123d82 100%); color: #dbe7fb; border: 0; }
.contact-card .card-title { color: #fff; font-size: 17px; }
.contact-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; }
.contact-line { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; padding: 7px 0; font-size: 15px; }
.contact-line svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.contact-line span { direction: ltr; unicode-bidi: isolate; }
.contact-card .btn { width: 100%; justify-content: center; margin-top: 12px; background: #fff; color: var(--navy); box-shadow: none; }
.contact-card .btn:hover { background: var(--tint); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b9c7de; padding: 26px 0; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.footer-brand { color: #fff; font-weight: 700; font-size: 16px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .content-grid { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "side main" "aside aside"; }
  .content-grid:not(:has(.side ul a:not(:empty))) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "aside"; }
  .aside-col { position: static; }
  .hero-row { grid-template-columns: 1.2fr 1fr; gap: 28px; }
}
/* menu button - phones only */
.nav-toggle { display: none; }
/* narrow computer / tablet: the header row is full - the e-mail chip goes (it's in the footer and the contact card) */
@media (max-width: 980px) and (min-width: 761px) {
  .header-contact .chip:not(.primary) { display: none; }
}
@media (max-width: 760px) {
  .lang-switch { display: none; }
  .lang-row {
    display: flex; align-items: center; gap: 8px;
    margin-top: 8px; padding: 12px 4px 2px; border-top: 1px solid var(--line);
  }
  .lang-row svg { width: 20px; height: 20px; flex: none; stroke: var(--muted); margin: 0 6px; }
  .lang-row a {
    flex: 1; text-align: center; padding: 11px 6px; border-radius: 10px;
    background: var(--bg); color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none;
  }
  .lang-row a.on { background: var(--tint); color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
  .wrap { padding: 0 16px; }
  .header-row { min-height: 64px; gap: 10px; }
  .brand { gap: 10px; }
  .brand img { height: 38px; }
  .brand-name { font-size: 23px; }
  .brand-name small { font-size: 12.5px; margin-top: 3px; }
  .header-contact { gap: 8px; }
  .header-contact .chip:not(.primary) { display: none; }
  .chip.primary { padding: 8px 12px; font-size: 13.5px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  /* the menu: a vertical list under the header, opened by the button */
  .main-nav { display: none; }
  .nav-open .main-nav { display: block; box-shadow: 0 16px 30px rgba(11, 42, 91, .12); }
  .main-nav .wrap { overflow: visible; padding-top: 6px; padding-bottom: 10px; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul a { padding: 12px 14px; border-bottom: 0; border-radius: 10px; font-size: 16px; }
  .main-nav ul a.selected, .main-nav ul a.is-active { background: var(--tint); }
  /* compact top section */
  .hero-row { grid-template-columns: 1fr; padding-top: 22px; padding-bottom: 22px; }
  .eyebrow { font-size: 12px; padding: 5px 12px; }
  .hero h1 { font-size: 26px; margin: 12px 0 8px; }
  .hero-lead { font-size: 15.5px; margin-bottom: 16px; }
  .hero-points { display: none; }
  .hero-cta .btn { flex: 1; justify-content: center; padding: 12px 16px; }
  .hero-cta .btn.ghost { display: none; }
  .hero-media { display: none; }
  /* the contact card repeats the footer - the header already has the phone */
  .aside-col { display: none !important; }
  .content-grid { padding-bottom: 28px; }
  .card { border-radius: 14px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .content-grid, .content-grid:not(:has(.side ul a:not(:empty))) {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main" "aside"; gap: 16px; padding-top: 16px;
  }
  .side { position: static; }
  .aside-col { grid-template-columns: 1fr; }
  .site-footer a { white-space: nowrap; }
}
/* small phones (≤400px, e.g. 360/320): the header row must fit - phone chip shrinks to an icon */
@media (max-width: 400px) {
  .wrap { padding: 0 12px; }
  .header-row { gap: 8px; }
  .brand { gap: 7px; min-width: 0; }
  .brand img { height: 30px; }
  .brand-name { font-size: 20px; }
  .brand-name small { font-size: 11px; }
  .header-contact { gap: 6px; flex: none; }
  .chip.primary { padding: 0; width: 40px; height: 40px; justify-content: center; font-size: 0; gap: 0; }
  .chip.primary svg { width: 18px; height: 18px; }
  .nav-toggle { width: 40px; height: 40px; }
  .hero h1 { font-size: 23px; }
}
/* ---------- English / French (snapir\en, snapir\fr): left to right ---------- */
html[dir="ltr"] body { direction: ltr; }
html[dir="ltr"] .hero {
  background:
    radial-gradient(900px 380px at 10% -20%, #d7e7ff 0, rgba(215, 231, 255, 0) 65%),
    radial-gradient(600px 300px at 100% 120%, #e3f0ff 0, rgba(227, 240, 255, 0) 60%),
    linear-gradient(180deg, #fff 0, var(--bg) 100%);
}
html[dir="ltr"] .mock { transform: perspective(1400px) rotateY(6deg) rotateX(2deg); }
html[dir="ltr"] .mock-kpis strong { text-align: left; }
html[dir="ltr"] .brand-name { letter-spacing: -.6px; }
html[dir="ltr"] .hero h1 { letter-spacing: -.8px; }

/* never scroll sideways on a phone; iOS Safari sizes an iframe to its content unless pinned like this */
html { overflow-x: hidden; }
body { overflow-x: clip; }   /* clip, not hidden: hidden on body would break the sticky header */
.content-card iframe { width: 1px; min-width: 100%; }
