/* Shared nav + announce mobile behavior (EN + AR, all public pages) */

.nav {
  position: relative;
}

.nav-ctas-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
}

.nav-cta--accent {
  background: var(--gold-500, #d4a637);
  color: var(--green-900, #052e1c);
  border-color: var(--gold-500, #d4a637);
}

.nav-locale {
  display: none;
  align-items: center;
}

.nav-locale .locale-switch {
  color: var(--green-900, #052e1c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 8px;
  border: 1px solid var(--line, rgba(212, 166, 55, 0.18));
  border-radius: 4px;
  background: rgba(212, 166, 55, 0.08);
}

.nav-cta-short { display: none; }

@media (max-width: 768px) {
  /* Remove compact top announce bar on phones */
  .announce {
    display: none !important;
  }

  .nav-inner {
    padding: 10px 14px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .nav-links {
    display: none;
  }

  .nav.open .nav-links,
  .nav-links.is-open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px 20px;
    background: var(--paper, #fbfaf5);
    border-bottom: 1px solid var(--line, rgba(212, 166, 55, 0.18));
    z-index: 99;
    box-shadow: 0 12px 28px rgba(5, 46, 28, 0.08);
  }

  .nav.open .nav-links a,
  .nav-links.is-open a {
    padding: 10px 4px;
    font-size: 15px;
  }

  /* Keep Store / Sign In in the header row */
  .nav-ctas-wrap {
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    margin-inline-start: auto;
    gap: 5px !important;
  }

  .nav.open .nav-ctas-wrap {
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
  }

  .nav-cta {
    padding: 7px 10px !important;
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
    line-height: 1.2 !important;
  }

  /* Shorter labels on very small screens (helps Arabic "تسجيل الدخول") */
  .nav-cta-full { display: none; }
  .nav-cta-short { display: inline; }

  .nav-locale {
    display: inline-flex !important;
  }

  .nav-locale .locale-switch {
    font-size: 11px;
    padding: 6px 7px;
    color: var(--green-900, #052e1c);
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--green-900, #052e1c);
    cursor: pointer;
  }

  .brand-logo-img,
  .logo-svg {
    height: 40px !important;
  }

  [dir="rtl"] .nav-cta {
    letter-spacing: 0 !important;
    font-size: 11px !important;
    padding: 7px 11px !important;
  }

  [dir="rtl"] .nav-locale .locale-switch {
    letter-spacing: 0;
  }
}

@media (max-width: 380px) {
  .nav-cta {
    padding: 6px 8px !important;
    font-size: 9px !important;
  }
  [dir="rtl"] .nav-cta {
    font-size: 10px !important;
  }
}
