/* NOF NEGEV phone menu (2026-11-11). menu.js opens it, gen.py menu() writes it. Below 900px only: a dark scrim dims
   the whole page, a deep turquoise sheet drops from the top under the header, the rows rise one after another and a
   contact block closes the sheet. The sheet is a sibling of the header, so the header's backdrop-filter cannot clip it.
   Varela Round has one weight: everything here stays at 400, never bold, never synthesized. */

.nn-menu { display: none; }

@media (max-width: 900px) {
  /* the old in-header overlay (nn.css) is retired on phones */
  .nn-nav { display: none !important; }

  .nn-menu { --mx: #f7f5f0; --mx2: rgb(247 245 240 / .72); --mline: rgb(247 245 240 / .14); --mtq: #a8dcc9;
    --ease: cubic-bezier(.2, .8, .2, 1);
    display: block; position: fixed; inset: 0; z-index: 70; font-weight: 400; font-synthesis: none; }
  .nn-menu[hidden] { display: none; }

  /* the dimming over everything */
  .nn-menu-scrim { position: absolute; inset: 0; background: rgb(6 12 10 / .62); -webkit-backdrop-filter: blur(6px) saturate(.9); backdrop-filter: blur(6px) saturate(.9);
    opacity: 0; transition: opacity .32s ease; cursor: pointer; touch-action: none; }
  .nn-menu.is-open .nn-menu-scrim { opacity: 1; transition-duration: .4s; }

  /* the sheet */
  .nn-menu-sheet { position: absolute; inset: 0 0 auto; max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 80px max(var(--pad), 22px) 22px; color: var(--mx); outline: none;
    background: radial-gradient(130% 70% at 100% 0%, #276552 0%, rgb(39 101 82 / 0) 62%), linear-gradient(180deg, #1C4E3D, #17412f 100%);
    border-radius: 0 0 30px 30px; box-shadow: 0 40px 90px -30px rgb(0 0 0 / .65);
    clip-path: inset(0 0 100% 0 round 0 0 30px 30px); transform: translateY(-24px);
    transition: clip-path .42s var(--ease), transform .42s var(--ease); }
  .nn-menu.is-open .nn-menu-sheet { clip-path: inset(0 0 0 0 round 0 0 30px 30px); transform: none; transition-duration: .68s; transition-delay: .06s; }
  /* a fine drawing-sheet grid in the corner, the brand's engineering note */
  .nn-menu-sheet::before { content: ''; position: absolute; inset: 0 0 auto auto; width: 70%; height: 260px; pointer-events: none;
    background-image: linear-gradient(rgb(247 245 240 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(247 245 240 / .05) 1px, transparent 1px);
    background-size: 26px 26px; -webkit-mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, transparent 75%); }

  /* rows */
  .nn-menu-list { list-style: none; margin: 0; padding: 0; position: relative; }
  .nn-menu-list li { position: relative; }
  .nn-menu-list li::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: var(--mline); transform: scaleX(0); transform-origin: right;
    transition: transform .5s var(--ease); }
  .nn-menu-list a { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 2px; color: var(--mx); text-decoration: none;
    -webkit-tap-highlight-color: transparent; opacity: 0; transform: translateY(20px); transition: opacity .25s ease, transform .25s ease, color .25s; }
  .nn-menu-no { flex: none; width: 24px; font-size: 12.5px; letter-spacing: .14em; color: var(--mtq); direction: ltr; text-align: right; transform: translateY(-.55em); }
  .nn-menu-t { font-size: clamp(27px, 7.9vw, 34px); line-height: 1.1; letter-spacing: -.005em; }
  .nn-menu-here { font-size: 12.5px; letter-spacing: .04em; color: #0f2a21; background: var(--mtq); padding: 3px 10px; border-radius: 999px; }
  .nn-menu-go { margin-inline-start: auto; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--mline);
    font-style: normal; transition: background .3s, border-color .3s, transform .35s var(--ease); }
  .nn-menu-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
  .nn-menu-list a:hover .nn-menu-go, .nn-menu-list a:active .nn-menu-go, .nn-menu-list a:focus-visible .nn-menu-go { background: var(--tq); border-color: var(--tq); transform: translateX(-6px); }
  .nn-menu-list a:hover .nn-menu-go svg, .nn-menu-list a:active .nn-menu-go svg { transform: translateX(-2px); }
  .nn-menu-list a:active .nn-menu-t { color: var(--mtq); }
  .nn-menu-list a[aria-current] .nn-menu-t { color: var(--mtq); }
  .nn-menu-list a[aria-current] .nn-menu-go { border-color: rgb(168 220 201 / .5); }

  .nn-menu.is-open .nn-menu-list a { opacity: 1; transform: none; transition: opacity .55s ease, transform .7s var(--ease), color .25s;
    transition-delay: calc(.22s + var(--i) * 55ms), calc(.22s + var(--i) * 55ms), 0s; }
  .nn-menu.is-open .nn-menu-list li::after { transform: scaleX(1); transition-duration: .9s; transition-delay: calc(.3s + var(--i) * 55ms); }

  /* contact block */
  .nn-menu-foot { margin-top: 20px; display: grid; gap: 8px; opacity: 0; transform: translateY(14px); transition: opacity .2s, transform .2s; }
  .nn-menu.is-open .nn-menu-foot { opacity: 1; transform: none; transition: opacity .6s ease .62s, transform .7s var(--ease) .62s; }
  .nn-menu-k { margin: 0 0 2px; font-size: 13px; letter-spacing: .12em; color: var(--mtq); }
  .nn-menu-foot svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .nn-menu-tels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .nn-menu-tels a, .nn-menu-line { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 14px; color: var(--mx); text-decoration: none;
    background: rgb(247 245 240 / .06); border: 1px solid var(--mline); font-size: 16px; transition: background .25s, border-color .25s; -webkit-tap-highlight-color: transparent; }
  .nn-menu-tels a { justify-content: center; }
  .nn-menu-tels a span { direction: ltr; }
  .nn-menu-tels a:hover, .nn-menu-line:hover, .nn-menu-tels a:active, .nn-menu-line:active { background: rgb(247 245 240 / .12); border-color: rgb(247 245 240 / .3); }
  .nn-menu-mail { direction: ltr; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .nn-menu-cta { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; margin-top: 6px; border-radius: 999px; text-decoration: none;
    background: var(--tq); color: #0c2219; font-size: 18px; -webkit-tap-highlight-color: transparent; transition: background .25s, transform .25s; }
  .nn-menu-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
  .nn-menu-cta:hover, .nn-menu-cta:active { background: #6aab94; }
  .nn-menu-cta:hover svg, .nn-menu-cta:active svg { transform: translateX(-5px); }
  .nn-menu :focus-visible { outline: 2px solid var(--mtq); outline-offset: 3px; border-radius: 12px; }

  /* the header rides above the sheet while it is open: clear glass, white wordmark, the burger turns to a white X */
  html.nn-menu-on #hdr { z-index: 71; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; }
  html.nn-menu-on #hdr .nn-logo b { color: #fff; text-shadow: none; }
  html.nn-menu-on #hdr .nn-logo small { color: var(--mtq); }
  html.nn-menu-on #hdr .nn-burger { border-color: rgb(247 245 240 / .4); }
  html.nn-menu-on #hdr .nn-burger i { background: #fff; }
  html.nn-menu-on, html.nn-menu-on body { overflow: hidden; }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .nn-menu-sheet, .nn-menu.is-open .nn-menu-sheet { transform: none; clip-path: none; transition: none; }
  .nn-menu:not(.is-open) .nn-menu-sheet { opacity: 0; }
  .nn-menu-list a, .nn-menu.is-open .nn-menu-list a, .nn-menu-foot, .nn-menu.is-open .nn-menu-foot { transform: none; transition: opacity .15s; transition-delay: 0s; }
  .nn-menu-list li::after, .nn-menu.is-open .nn-menu-list li::after { transform: none; transition: none; }
  .nn-menu-scrim, .nn-menu.is-open .nn-menu-scrim { transition: opacity .15s; }
  .nn-menu-go, .nn-menu-go svg, .nn-menu-cta svg { transition: none; }
}
