/* Native product scrolling on mobile and touch-capable devices.
   Leave the desktop theme and card layout unchanged. */
@media (width <= 820px), (any-pointer: coarse) {
  .carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
  .carousel__viewport::-webkit-scrollbar { display: none; }
}

/* Distinct menu and close icons; visibility is driven by aria-expanded. */
.burger-icon__close { opacity: 0; }
.nav__burger[aria-expanded="true"] .burger-icon__menu { opacity: 0; }
.nav__burger[aria-expanded="true"] .burger-icon__close { opacity: 1; }

@media (width <= 820px) {
  /* More readable typography for small screens; retain the Rawaa wordmark. */
  html[lang="en"] {
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: var(--font-body);
  }
  :root {
    --fs-xs: .8rem;
    --fs-sm: .92rem;
    --fs-md: 1rem;
    --fs-lg: 1.25rem;
    --fs-xl: clamp(1.65rem, 5.7vw, 2.35rem);
  }
  html[lang="en"] em {
    font-style: normal;
    font-weight: 600;
  }
  html[lang="en"] .logo em,
  html[lang="en"] .loader__word,
  html[lang="en"] .footer__word {
    font-family: "Instrument Serif", Georgia, serif;
    font-style: italic;
    font-weight: 400;
  }
  .hero__title {
    font-size: clamp(2.05rem, 9.2vw, 3.8rem);
    font-weight: 600;
    line-height: 1.13;
    letter-spacing: -.025em;
  }
  html[lang="ar"] .hero__title {
    font-size: clamp(2rem, 8.5vw, 3.6rem);
    line-height: 1.32;
    letter-spacing: normal;
  }
  .hero__title em { letter-spacing: inherit; }
  .hero__title .line { padding-bottom: .1em; margin-bottom: -.1em; }
  .hero__sub {
    font-size: .95rem;
    line-height: 1.65;
    color: var(--c-cream);
    margin-block: 14px 22px;
  }
  .stat__label { line-height: 1.45; }
  .stat__num { font-size: 1.95rem; }
  .stat__num em { font-style: normal; font-weight: 600; }
  h2 { line-height: 1.2; }
  .pcard__name { line-height: 1.5; }
  .menu {
    font: 600 1.125rem/1.45 var(--font-body);
    gap: 2px;
    padding: 10px;
  }
  .menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--c-ink);
  }
  .menu a:active { background: var(--c-sand); }
  .menu a:focus-visible { outline-color: var(--c-fig); }
  .nav .nav__burger {
    color: inherit;
    background: #fbf3ea14;
    border-color: #fbf3ea47 !important;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
  }
  .nav.is-solid .nav__burger {
    color: var(--c-ink);
    background: transparent;
    border-color: var(--c-line) !important;
  }
  .nav.is-solid .nav__burger[aria-expanded="true"] {
    background: var(--c-sand);
  }
  .nav .nav__burger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 50%;
  }
  .nav__burger .burger-icon {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
    pointer-events: none;
  }
  .burger-icon__menu, .burger-icon__close {
    transition: opacity .18s var(--ease-out);
  }
}
@media (prefers-reduced-motion: reduce) {
  .burger-icon__menu, .burger-icon__close { transition: none; }
}
