/* NAWAH COFFEE V8.18 — customer mobile liquid-glass navigation.
   Scoped to the public site; does not touch admin pages or menu cards. */
@media (max-width: 720px) {
  .site-header { isolation: isolate; }

  .site-header .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 4;
    width: 43px;
    height: 43px;
    min-width: 43px;
    min-height: 43px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.27);
    border-radius: 50%;
    color: #f8f5ee;
    background: linear-gradient(140deg,rgba(255,255,255,.19),rgba(255,255,255,.045) 62%),rgba(42,62,47,.54);
    box-shadow: inset 0 1px rgba(255,255,255,.27), 0 4px 18px rgba(5,18,9,.17);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    backdrop-filter: blur(16px) saturate(170%);
    transition: transform .38s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s;
    -webkit-tap-highlight-color: transparent;
  }
  .site-header .nav-toggle:active { transform: scale(.93); }
  .site-header .nav-toggle span {
    display: block;
    width: 18px;
    height: 1.6px;
    flex: none;
    border-radius: 3px;
    background: #f4f2e8;
    transition: transform .40s cubic-bezier(.2,.8,.2,1), background .22s;
  }
  .site-header.menu-open .nav-toggle {
    background: linear-gradient(140deg,rgba(225,199,160,.20),rgba(255,255,255,.07)),rgba(42,62,47,.64);
    box-shadow: inset 0 1px rgba(255,255,255,.35), 0 7px 24px rgba(0,0,0,.25);
  }
  .site-header.menu-open .nav-toggle span:first-child { transform: translateY(3.8px) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

  /* Override the old display:none/mobile full-width rectangle. Keep the panel
     renderable during the EXIT transition as well as the entrance transition. */
  .site-header #siteNav {
    position: absolute;
    top: calc(100% + 11px);
    left: 12px;
    right: 12px;
    width: min(440px, calc(100vw - 24px));
    max-height: min(75vh, 520px);
    margin-inline: auto;
    padding: 14px;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    overflow: auto;
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 28px;
    background:
      linear-gradient(132deg,rgba(255,255,255,.22),transparent 42%,rgba(213,186,146,.07) 91%),
      rgba(28,42,32,.79);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    backdrop-filter: blur(28px) saturate(170%);
    box-shadow: 0 21px 52px rgba(4,15,7,.42), inset 0 1px 0 rgba(255,255,255,.32), inset 0 -1px rgba(255,255,255,.06);
    text-align: start;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-17px) scale(.965);
    transform-origin: center top;
    filter: blur(5px);
    transition:
      visibility 0s linear .43s,
      opacity .25s ease,
      transform .43s cubic-bezier(.2,.8,.2,1),
      filter .3s ease;
    z-index: 5;
    isolation: isolate;
  }
  .site-header #siteNav::before {
    content: '';
    position: absolute;
    inset: -30% -15% 35% -15%;
    background: radial-gradient(ellipse at 15% 10%,rgba(255,255,255,.20),transparent 68%);
    pointer-events: none;
    z-index: -1;
  }
  .site-header #siteNav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition:
      visibility 0s,
      opacity .31s ease,
      transform .53s cubic-bezier(.17,.88,.24,1.07),
      filter .32s ease;
  }
  .site-header #siteNav a {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: none;
    width: 100%;
    min-height: 55px;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    background: linear-gradient(110deg,rgba(255,255,255,.105),rgba(255,255,255,.035));
    color: #f8f7f1;
    font-size: 14px;
    font-weight: 600;
    text-align: start;
    line-height: 1.4;
    letter-spacing: 0;
    text-decoration: none;
    white-space: normal;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .22s ease, transform .32s cubic-bezier(.2,.8,.2,1),
                background .22s ease, border-color .22s ease;
    transition-delay: 0s;
  }
  .site-header #siteNav.is-open a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--nawah-nav-index,0) * 50ms);
  }
  .site-header #siteNav a::after {
    content: '↗';
    flex: none;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    background: rgba(255,255,255,.075);
    color: #e7d2aa;
    font-family: Georgia,serif;
    font-size: 16px;
    font-weight: 400;
  }
  .site-header #siteNav a[href$='#nawah-rating'] {
    color: #f2d5a5;
    border-color: rgba(215,184,132,.28);
    background: linear-gradient(115deg,rgba(218,184,126,.20),rgba(255,255,255,.04));
  }
  .site-header #siteNav a[href$='#nawah-rating']::after {
    content: '★';
    color: #f0d29c;
    font-size: 15px;
  }
  .site-header #siteNav a:is(:hover,:focus-visible) {
    color: #fff;
    background: rgba(255,255,255,.21);
    border-color: rgba(255,255,255,.36);
    outline-offset: -3px;
  }
  html[lang='en'] .site-header #siteNav { direction: ltr; }
  html[lang='ar'] .site-header #siteNav { direction: rtl; }

  body.nawah-nav-glass-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(5,12,7,.22);
    pointer-events: auto;
    animation: nawahGlassDim .3s ease both;
  }
  @keyframes nawahGlassDim { from { opacity: 0; } to { opacity: 1; } }
}
@media (min-width: 721px) {
  .site-header #siteNav a { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header #siteNav, .site-header #siteNav a, .site-header .nav-toggle,
  .site-header .nav-toggle span { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; filter: none !important; }
  body.nawah-nav-glass-open::before { animation: none !important; }
}
