/* Utility bar */
.sbr-util{background:var(--ink);color:var(--on-dark-soft);font-size:13px}
.sbr-util a{color:inherit;text-decoration:none}
.sbr-util__in{max-width:1240px;margin:0 auto;padding:8px 48px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;align-items:center}
.sbr-util a:hover{color:#fff}
.sbr-util__r{display:flex;gap:20px;align-items:center;flex:1;justify-content:space-between}
.sbr-util__contacts{display:flex;gap:20px;align-items:center}

/* Header — SOLID & readable on every page from first paint; sticky to top. */
.sbr-hdr{position:sticky;top:0;z-index:50;background:var(--paper);color:var(--ink);border-bottom:1px solid var(--line);transition:box-shadow .3s}
.admin-bar .sbr-hdr{top:32px}
.sbr-hdr.is-solid{box-shadow:0 8px 24px -18px rgba(0,0,0,.35)}
.sbr-hdr__in{max-width:1240px;margin:0 auto;padding:15px 48px;display:flex;align-items:center;justify-content:space-between;gap:30px}
/* Brand lockup (concept-02): gold mark (the symbol) + stacked wordmark —
   big name line + small gold sub. direction:rtl → mark leads on the RIGHT. */
.sbr-logo{display:inline-flex;align-items:center;gap:15px;color:inherit;text-decoration:none;direction:rtl}
.sbr-logo__mark{width:50px;height:50px;flex:0 0 auto}
.sbr-logo__wm{display:flex;flex-direction:column;line-height:1;white-space:nowrap}
.sbr-logo__name{font-weight:900;font-size:28px;letter-spacing:-.01em;color:inherit}
.sbr-logo__sub{font-weight:500;font-size:11.5px;letter-spacing:.2em;color:var(--accent-strong);margin-top:7px}
.sbr-logo__kit{color:var(--accent-strong)} /* legacy single-line variant */
/* Mobile: scale the lockup down so it fits the compact bar */
@media(max-width:980px){
  .sbr-logo__mark{width:40px;height:40px}
  .sbr-logo__name{font-size:22px}
  .sbr-logo__sub{font-size:10px;letter-spacing:.16em;margin-top:5px}
}

/* --- Primary navigation (desktop) --- */
.sbr-nav{position:relative}
.sbr-nav__menu{display:flex;gap:30px;align-items:center;list-style:none;margin:0;padding:0}
.sbr-nav__menu>li{position:relative}
.sbr-nav__menu a{font-weight:500;font-size:15.5px;color:inherit;text-decoration:none;position:relative;padding:5px 0;display:inline-flex;align-items:center;gap:6px}
.sbr-nav__menu>li>a::after{content:"";position:absolute;inset-inline:0;bottom:-1px;height:2px;background:var(--accent);transform:scaleX(0);transform-origin:right;transition:transform .25s}
.sbr-nav__menu>li>a:hover::after,
.sbr-nav__menu>li.current-menu-item>a::after,
.sbr-nav__menu>li.current-menu-parent>a::after,
.sbr-nav__menu>li.current-menu-ancestor>a::after{transform:scaleX(1)}
.sbr-nav__menu>li.current-menu-item>a,
.sbr-nav__menu>li.current-menu-parent>a,
.sbr-nav__menu>li.current-menu-ancestor>a{color:var(--accent-strong);font-weight:600}

/* Chevron on parent items — ABSOLUTELY positioned so it sits in the flex gap
   (visual end of reading direction in RTL = LEFT of the label) without adding
   to the link's flex/inline width. Otherwise the parent <li> becomes wider than
   neighbours and the gap between שירותים and אודות looks bigger than the gap
   between any two non-parent items. The link itself stays as wide as its text.

   Also explicitly resets `top`/`bottom`/`inset-inline`/`transform` to override
   the underline rule on the same `::after` (different positioning model). */
.sbr-nav__menu>li.menu-item-has-children>a{padding-inline-end:0}
.sbr-nav__menu>li.menu-item-has-children>a::after{
  content:"";position:absolute;
  top:50%; bottom:auto;
  inset-inline-start:auto; inset-inline-end:-13px;
  width:9px;height:6px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  opacity:.6;
  transform:translateY(-50%) rotate(0);
  transition:opacity .2s, transform .25s;
  pointer-events:none}
/* Desktop chevron stays put — no rotation/movement on hover/focus/open/active.
   Only a gentle opacity bump for feedback (rotating it looked broken). */
.sbr-nav__menu>li.menu-item-has-children:hover>a::after,
.sbr-nav__menu>li.menu-item-has-children:focus-within>a::after,
.sbr-nav__menu>li.menu-item-has-children.is-open>a::after,
.sbr-nav__menu>li.menu-item-has-children.current-menu-item>a::after,
.sbr-nav__menu>li.menu-item-has-children.current-menu-parent>a::after,
.sbr-nav__menu>li.menu-item-has-children.current-menu-ancestor>a::after{
  transform:translateY(-50%) rotate(0);opacity:1}

/* Mobile-only toggle button (JS-injected) — hidden on desktop, the CSS chevron above
   handles the visual on desktop. The button still exists in the DOM for keyboard /
   screen-reader access, but we hide it visually until the mobile breakpoint. */
.sbr-nav__submenu-toggle{display:none}

/* Submenu (desktop dropdown) — centered horizontally under the parent label */
.sbr-nav__menu .sub-menu{
  position:absolute;
  top:calc(100% + 12px);
  left:50%;
  background:var(--paper);border:1px solid var(--line);border-radius:12px;
  min-width:230px;padding:10px;margin:0;list-style:none;
  box-shadow:0 18px 42px -22px rgba(0,0,0,.4),0 8px 16px -10px rgba(0,0,0,.25);
  opacity:0;visibility:hidden;
  transform:translate(-50%,-6px);
  transition:opacity .2s,transform .2s,visibility 0s linear .2s;
  z-index:5}
.sbr-nav__menu>li:hover>.sub-menu,
.sbr-nav__menu>li:focus-within>.sub-menu,
.sbr-nav__menu>li.is-open>.sub-menu{
  opacity:1;visibility:visible;transform:translate(-50%,0);
  transition:opacity .2s,transform .2s,visibility 0s linear 0s}
.sbr-nav__menu .sub-menu li{margin:0}
.sbr-nav__menu .sub-menu a{display:block;padding:9px 14px;border-radius:7px;font-size:15px;font-weight:500;color:var(--fg-soft);text-align:start}
.sbr-nav__menu .sub-menu a:hover,
.sbr-nav__menu .sub-menu .current-menu-item>a{background:rgba(224,162,60,.10);color:var(--ink)}

/* CTA in nav: hidden on desktop, visible on mobile drawer */
.sbr-nav__cta{display:none}
.sbr-nav__portrait{display:none}   /* mobile-drawer only — revealed in the ≤980px block */
/* Close button — visible only in mobile drawer */
.sbr-nav__close{display:none;background:0;border:0;cursor:pointer;color:inherit;padding:6px;border-radius:50%}
.sbr-nav__close svg{width:24px;height:24px}

/* Header end cluster (phone + CTA + burger) — desktop */
.sbr-hdr__end{display:flex;align-items:center;gap:22px}
.sbr-hdr__phone{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:15.5px;color:inherit;text-decoration:none}
.sbr-hdr__phone .sbr-ico{width:17px;height:17px;color:var(--accent)}
.sbr-hdr__burger{display:none;flex-direction:column;gap:5px;background:0;border:0;cursor:pointer;padding:8px}
.sbr-hdr__burger span{width:24px;height:2px;background:var(--accent);display:block;transition:transform .25s,opacity .25s}
/* Burger → X animation when drawer is open */
.sbr-hdr[data-open] .sbr-hdr__burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.sbr-hdr[data-open] .sbr-hdr__burger span:nth-child(2){opacity:0}
.sbr-hdr[data-open] .sbr-hdr__burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Overlay (mobile only) */
.sbr-nav-overlay{display:none;position:fixed;inset:0;background:rgba(16,14,11,.55);
  opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s linear .25s;z-index:55;
  backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.sbr-hdr[data-open] ~ .sbr-nav-overlay,
.sbr-hdr[data-open] .sbr-nav-overlay{opacity:1;visibility:visible;transition:opacity .25s,visibility 0s linear 0s}

/* ----- Mobile drawer (≤980px) ----- */
@media(max-width:980px){
  /* Drawer slides in from the RIGHT edge (RTL).
     Horizontal padding is ZERO on the wrapper so the active-item highlight can
     stretch edge-to-edge. Items provide their own horizontal padding. */
  .sbr-nav{position:fixed;top:0;bottom:0;right:0;left:auto;
    width:min(86vw,380px);max-width:100%;
    background:var(--paper);color:var(--ink);
    display:flex;flex-direction:column;gap:0;
    padding:110px 0 28px 0;
    transform:translateX(100%);
    transition:transform .32s cubic-bezier(.2,.7,.2,1);
    z-index:60;box-shadow:-24px 0 60px -34px rgba(0,0,0,.5);
    overflow-y:auto;-webkit-overflow-scrolling:touch}
  .sbr-hdr[data-open] .sbr-nav{transform:translateX(0)}

  /* Close X — anchored to drawer's left edge in RTL.
     The header burger is hidden when drawer is open (see rule below) so this
     is the ONLY close affordance — no duplicate X. */
  .sbr-nav__close{display:inline-flex;position:absolute;left:22px;right:auto;top:22px;
    width:44px;height:44px;align-items:center;justify-content:center;
    border:1px solid var(--line);background:rgba(224,162,60,.08);border-radius:50%;
    transition:background .2s,transform .2s}
  .sbr-nav__close:hover{background:rgba(224,162,60,.18);transform:rotate(90deg)}

  /* Menu fills the vertical space between top padding and the bottom CTA.
     Items are flush rows — no border-radius, no card look. */
  .sbr-nav__menu{flex-direction:column;gap:0;align-items:stretch;font-size:18px;width:100%;flex:1 1 auto}
  .sbr-nav__menu>li{border-bottom:1px solid var(--line);position:relative}
  .sbr-nav__menu>li:last-child{border-bottom:0}
  .sbr-nav__menu a{display:block;padding:20px 28px;width:100%;
    transition:background .2s,color .2s;border-radius:0}
  .sbr-nav__menu>li>a::after{display:none}
  /* Hide CSS chevron on mobile — JS toggle button replaces it */
  .sbr-nav__menu>li.menu-item-has-children>a::after{display:none}

  /* Active page indicator — subtle: 3px right-edge bar (RTL leading) + bolder amber text.
     No background tint to keep things refined. The bar is on the <li> so it spans the
     full row including the toggle-button cell on parent items. */
  .sbr-nav__menu>li.current-menu-item::before,
  .sbr-nav__menu>li.current-menu-parent::before,
  .sbr-nav__menu>li.current-menu-ancestor::before{
    content:"";position:absolute;inset-inline-start:0;top:10px;bottom:10px;
    width:3px;background:var(--accent);border-radius:2px}
  .sbr-nav__menu>li.current-menu-item>a,
  .sbr-nav__menu>li.current-menu-parent>a,
  .sbr-nav__menu>li.current-menu-ancestor>a{
    color:var(--accent-strong);font-weight:600}

  /* Sub-menu current item — amber-strong text + subtle amber tint (no bar; indentation
     already communicates nesting) */
  .sbr-nav__menu .sub-menu .current-menu-item>a{
    color:var(--accent-strong);font-weight:600;background:rgba(224,162,60,.08)}

  /* Parent items with children become a row: link + toggle button */
  .sbr-nav__menu>li.menu-item-has-children{display:grid;grid-template-columns:1fr auto;align-items:center}
  .sbr-nav__submenu-toggle{
    display:inline-flex;
    background:0;border:0;cursor:pointer;color:inherit;
    width:48px;height:48px;align-items:center;justify-content:center;
    margin-inline-end:14px;
    border-radius:50%;transition:background .2s}
  .sbr-nav__submenu-toggle svg{width:18px;height:18px;transition:transform .25s;display:block}
  .sbr-nav__submenu-toggle:hover{background:rgba(224,162,60,.12)}
  .sbr-nav__menu>li.is-open .sbr-nav__submenu-toggle svg{transform:rotate(180deg)}

  /* Submenu — accordion on mobile. Spans the full grid width.
     CRITICAL: must zero out `padding-inline-start` explicitly. The UA stylesheet
     sets `ul { padding-inline-start: 40px }` which is a LOGICAL property and is
     NOT reset by the `padding` shorthand (the shorthand only touches the four
     physical longhands). In RTL that stray 40px shows up as right padding,
     pushing every sub-item visibly leftward from the right edge. */
  .sbr-nav__menu .sub-menu{
    position:static;display:block;grid-column:1 / -1;width:100%;
    background:rgba(0,0,0,.025);border:0;box-shadow:none;border-radius:0;
    list-style:none;
    padding-block:4px 12px;
    padding-inline:0;
    margin:0;
    opacity:1;visibility:visible;transform:none;
    max-height:0;overflow:hidden;transition:max-height .3s cubic-bezier(.2,.7,.2,1);
    left:auto}
  /* IMPORTANT: also reset the transform here. The desktop rule
     `.sbr-nav__menu>li.is-open>.sub-menu{transform:translate(-50%,0)}` has higher
     specificity (3 classes + 1 element) than the plain `.sbr-nav__menu .sub-menu`
     selector (2 classes) — so without this explicit reset it leaks into mobile
     and physically shifts the entire submenu left by half its width. */
  .sbr-nav__menu>li.is-open>.sub-menu{max-height:600px;transform:none;left:auto}
  .sbr-nav__menu .sub-menu li{position:relative;margin:0;padding:0;border:0;background:none;list-style:none}
  .sbr-nav__menu .sub-menu li::before{
    content:"";position:absolute;inset-inline-start:30px;top:50%;
    width:10px;height:1px;background:currentColor;opacity:.3;
    pointer-events:none}
  .sbr-nav__menu .sub-menu a{
    display:block;
    padding-block:13px;
    padding-inline-start:50px;       /* RTL: right padding — text indents 50px from the start edge */
    padding-inline-end:22px;         /* RTL: left padding */
    font-size:15.5px;color:var(--fg-soft);
    text-align:start;
    border-radius:0}
  .sbr-nav__menu .sub-menu a:hover{background:rgba(224,162,60,.08);color:var(--ink)}

  /* Founder sketch — owns the bottom-push (margin-top:auto) so it groups with the
     CTA at the drawer bottom, sitting just above it in the otherwise-empty zone.
     Decorative + non-interactive; small, slightly muted so it never competes. */
  .sbr-nav__portrait{display:block;margin-top:auto;padding:16px 24px 0;text-align:center}
  .sbr-nav__portrait img{display:block;width:clamp(98px,30vw,126px);height:auto;margin:0 auto;
    opacity:.92;user-select:none;-webkit-user-select:none;pointer-events:none}

  /* CTA anchored at drawer bottom — horizontal margin since wrapper has 0 padding.
     The portrait above now provides the top-auto gap, so the CTA just needs a
     small fixed gap below the portrait. */
  .sbr-nav__cta{display:inline-flex;width:auto;justify-content:center;
    margin:14px 24px 0;padding:16px 22px;font-size:16.5px;flex-shrink:0}

  .sbr-nav-overlay{display:block}

  /* Mobile top bar layout — Hebrew RTL convention:
     LOGO on the LEFT (natural visual anchor) + PHONE in middle + BURGER on the RIGHT
     (thumb-reach for right-handed users). In RTL flex row, order:1 paints rightmost. */
  .sbr-hdr__end{display:contents}
  .sbr-hdr__end .sbr-btn--primary{display:none}
  .sbr-hdr__phone-num{display:none}
  .sbr-hdr__brand{order:3}                       /* leftmost */
  .sbr-hdr__phone{order:2;                       /* middle */
    width:44px;height:44px;justify-content:center;gap:0;
    border:1px solid var(--line);border-radius:50%;flex:0 0 auto;
    margin-inline-start:auto;margin-inline-end:auto}
  .sbr-hdr__phone .sbr-ico{width:19px;height:19px}
  .sbr-hdr__burger{display:flex;order:1;         /* rightmost */
    z-index:65;position:relative}
  /* When drawer is open, hide the burger so only the in-drawer close X remains.
     Avoids the double-X UX bug. */
  .sbr-hdr[data-open] .sbr-hdr__burger{display:none}
  .sbr-hdr__in{padding:14px 22px;align-items:center;gap:12px;justify-content:space-between}
}

/* Body scroll lock when drawer open */
body.sbr-no-scroll{overflow:hidden}
