/* ==========================================================================
   Site chrome: header, mobile menu, footer, founder note.
   One shared header/footer for every Hebrew marketing page. The markup lives in
   display/public/partials/ and is written into each page by
   display/tools/sync-site-chrome.js (between the NAVBAR / FOOTER markers).
   Loaded last on every page so it wins over main.css / marketing-v2.css.
   ========================================================================== */

:root {
  --sc-ink: #0F172A;
  --sc-ink-soft: #3B4558;
  --sc-muted: #5B6475;
  --sc-ivory: #FBF8F1;
  --sc-paper: #FFFFFF;
  --sc-line: #E7E1D4;
  --sc-gold: #D4A843;
  --sc-gold-text: #8A6A1F;
}

/* ---------- Header ---------- */
#nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sc-ivory);
  border-bottom: 1px solid var(--sc-line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
#nav.site-nav.scrolled { box-shadow: 0 1px 0 var(--sc-line), 0 6px 18px rgba(15, 23, 42, .05); }
#nav.site-nav .sn-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}
#nav.site-nav .sn-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--sc-ink);
  text-decoration: none;
  flex-shrink: 0;
}
#nav.site-nav .sn-logo img { width: 40px; height: 40px; object-fit: contain; display: block; }

#nav.site-nav .sn-menu { display: flex; align-items: center; gap: 2px; margin-inline-end: auto; }
#nav.site-nav .sn-link,
#nav.site-nav .sn-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--sc-ink-soft);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
#nav.site-nav .sn-link:hover,
#nav.site-nav .sn-drop-btn:hover,
#nav.site-nav .sn-drop.open .sn-drop-btn { color: var(--sc-ink); background: rgba(15, 23, 42, .04); }
#nav.site-nav .sn-link[aria-current="page"] { color: var(--sc-ink); font-weight: 600; }
#nav.site-nav .sn-caret { font-size: 11px; opacity: .6; transition: transform .2s; }
#nav.site-nav .sn-drop.open .sn-caret { transform: rotate(180deg); }

/* Products dropdown: four plain rows. Opens on hover/focus (CSS) and on click (landing.js). */
#nav.site-nav .sn-drop { position: relative; }
#nav.site-nav .sn-drop-panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  width: 340px;
  padding: 8px;
  background: var(--sc-paper);
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
#nav.site-nav .sn-drop:hover .sn-drop-panel,
#nav.site-nav .sn-drop:focus-within .sn-drop-panel,
#nav.site-nav .sn-drop.open .sn-drop-panel { opacity: 1; visibility: visible; transform: none; }
#nav.site-nav .sn-drop-panel::before { /* hover bridge across the 8px gap */
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -10px;
  height: 10px;
}
#nav.site-nav .sn-drop-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--sc-ink);
}
#nav.site-nav .sn-drop-panel a:hover,
#nav.site-nav .sn-drop-panel a:focus-visible { background: var(--sc-ivory); }
#nav.site-nav .sn-drop-panel b { display: block; font-size: 15px; font-weight: 600; }
#nav.site-nav .sn-drop-panel span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--sc-muted); }

#nav.site-nav .sn-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
#nav.site-nav .sn-phone {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--sc-ink);
  text-decoration: none;
  line-height: 1.2;
}
#nav.site-nav .sn-phone:hover { background: rgba(15, 23, 42, .04); }
#nav.site-nav .sn-phone .sn-num { font-size: 15px; font-weight: 600; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
#nav.site-nav .sn-phone small { font-size: 12px; color: var(--sc-muted); }
#nav.site-nav .sn-quiet {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--sc-ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
#nav.site-nav .sn-quiet:hover { color: var(--sc-ink); background: rgba(15, 23, 42, .04); }
#nav.site-nav .sn-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--sc-ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}
#nav.site-nav .sn-cta:hover { background: #1E293B; }
#nav.site-nav a:focus-visible,
#nav.site-nav button:focus-visible { outline: 2px solid var(--sc-gold-text); outline-offset: 2px; }

/* Mobile header controls */
#nav.site-nav .sn-call,
#nav.site-nav .nav-toggle { display: none; }
#nav.site-nav .sn-call {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--sc-ink);
}
#nav.site-nav .sn-call svg { width: 22px; height: 22px; }

@media (max-width: 1180px) {
  #nav.site-nav .sn-phone small { display: none; }
}
@media (max-width: 1060px) {
  #nav.site-nav .sn-phone { display: none; }
}
@media (max-width: 900px) {
  #nav.site-nav .sn-inner { gap: 8px; padding-inline: 16px; height: 64px; }
  #nav.site-nav .sn-menu,
  #nav.site-nav .sn-actions { display: none; }
  #nav.site-nav .sn-call { display: inline-flex; margin-inline-start: auto; }
  #nav.site-nav .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--sc-ink);
  }
  #nav.site-nav .nav-toggle::after,
  #nav.site-nav .nav-toggle::before { content: none; display: none; } /* legacy main.css label */
  #nav.site-nav .nav-toggle span { width: auto; height: auto; background: none; border-radius: 0; }
  #nav.site-nav .nav-toggle .sn-bars { display: flex; flex-direction: column; gap: 5px; }
  #nav.site-nav .nav-toggle .sn-bars i { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  #nav.site-nav .nav-toggle .sn-toggle-label { font-size: 11px; line-height: 1; }
  #nav.site-nav .nav-toggle[aria-expanded="true"] .sn-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav.site-nav .nav-toggle[aria-expanded="true"] .sn-bars i:nth-child(2) { opacity: 0; }
  #nav.site-nav .nav-toggle[aria-expanded="true"] .sn-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Mobile menu ---------- */
#mobileMenu.sn-mobile {
  position: fixed;
  top: 64px;
  inset-inline: 0;
  bottom: 0;
  z-index: 100000; /* above the floating WhatsApp / accessibility buttons */
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--sc-ivory);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
#mobileMenu.sn-mobile.open { transform: none; visibility: visible; }
@media (min-width: 901px) { #mobileMenu.sn-mobile { display: none; } }
#mobileMenu.sn-mobile .sn-m-cta {
  display: block;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 12px;
  background: var(--sc-ink);
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
#mobileMenu.sn-mobile .sn-m-group { font-size: 13px; font-weight: 600; color: var(--sc-muted); padding: 14px 4px 4px; }
#mobileMenu.sn-mobile .sn-m-link {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--sc-line);
  color: var(--sc-ink);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
#mobileMenu.sn-mobile .sn-m-link small { display: block; font-size: 13.5px; font-weight: 400; color: var(--sc-muted); margin-top: 2px; }
#mobileMenu.sn-mobile .sn-m-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 18px 4px 0; font-size: 15px; }
#mobileMenu.sn-mobile .sn-m-foot a { color: var(--sc-ink-soft); text-decoration: none; }
#mobileMenu.sn-mobile .sn-m-foot .sn-num { direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-weight: 600; color: var(--sc-ink); }
body.sn-menu-open .beita-wa-fab,
body.sn-menu-open #a11y-toolbar { display: none !important; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sc-ink);
  color: rgba(255, 255, 255, .78);
  padding-block: 56px 28px;
  font-size: 15px;
  line-height: 1.6;
}
.site-footer .sf-inner { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.site-footer .sf-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.site-footer .sf-brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer .sf-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 22px; font-weight: 800; text-decoration: none; }
.site-footer .sf-logo img { width: 36px; height: 36px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.site-footer .sf-brand p { margin: 0; max-width: 32ch; }
.site-footer .sf-contact { display: flex; flex-direction: column; gap: 4px; }
.site-footer .sf-contact a { color: #fff; text-decoration: none; }
.site-footer .sf-contact a:hover { text-decoration: underline; }
.site-footer .sf-num { direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-weight: 600; }
.site-footer h2 { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.site-footer .sf-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .62);
}
.site-footer .sf-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .sf-bottom a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer .sf-bottom a:hover { color: #fff; text-decoration: underline; }
.site-footer a:focus-visible { outline: 2px solid var(--sc-gold); outline-offset: 2px; }
@media (max-width: 960px) {
  .site-footer .sf-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .sf-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer { padding-block: 40px 96px; } /* room for the floating buttons */
  .site-footer .sf-top { gap: 28px 20px; }
}

/* ---------- Founder note (replaces anonymous testimonials) ---------- */
.founder-note { padding-block: 72px; background: var(--sc-ivory); }
.founder-note-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 32px;
  background: var(--sc-paper);
  border: 1px solid var(--sc-line);
  border-radius: 16px;
  text-align: start;
}
.founder-note h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.3; color: var(--sc-ink); margin: 0 0 12px; letter-spacing: 0; }
.founder-note p { font-size: 17px; line-height: 1.7; color: var(--sc-ink-soft); margin: 0 0 10px; }
.founder-note .founder-note-contact { color: var(--sc-muted); font-size: 16px; }
.founder-note .founder-note-contact a { color: var(--sc-ink); font-weight: 600; text-decoration: none; white-space: nowrap; unicode-bidi: isolate; }
.founder-note-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.founder-note-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--sc-ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.founder-note-btn:hover { background: #1E293B; }
.founder-note-link { color: var(--sc-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) {
  .founder-note { padding-block: 48px; padding-inline: 16px; }
  .founder-note-inner { padding: 26px 20px; }
}

/* One accent across persona / landing pages (they each defined their own colour). Ink for actions,
   gold only for small accents. Loaded after the pages' own <style>, so this wins. */
body.v2 { --lp-accent: #8A6A1F; --lp-accent-soft: #B8902F; --lp-accent-tint: #F6F1E6; --lp-accent-rgb: 138,106,31; }

/* Recommended plan card: a plain ink outline instead of a blurred blue/purple glow, pulsing animation
   and lavender gradient. */
body.v2 .pricing-card.featured, .pricing-card.featured {
  background: #FFFFFF !important;
  border: 1.5px solid #0F172A !important;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .35) !important;
  animation: none !important;
}
.pricing-card.featured::before { display: none !important; }

/* Icon tiles: pages colour each card's tile differently inline (blue / green / purple / amber).
   One warm neutral tile with an ink icon everywhere outside the header and footer. */
body div:has(> svg.lucide:only-child)[style*="background"]:not(#nav *):not(.site-footer *),
body div:has(> i[data-lucide]:only-child)[style*="background"]:not(#nav *):not(.site-footer *) {
  background: #F3EEE3 !important;
  color: #0F172A !important;
}
