html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  .hero {
    width: 100%;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 580px) {
  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero h1 {
    font-size: 41px;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
  }

  .hero-actions .primary,
  .hero-actions .secondary {
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* Below 900px the header links used to be hidden with nothing in their place; then they sat on a row you had to swipe. Now
   every tool is visible at once: the brand on top and the links wrapped into (at most) two even rows of chips under it. */
@media (max-width: 900px) {
  .nav {
    position: static;
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
    padding: 10px 10px 12px;
  }

  .nav .brand {
    width: 100%;
    justify-content: center;
  }

  .nav nav {
    display: flex;
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    overflow: visible;
    font-size: 12.5px;
  }

  .nav nav a,
  .nav nav .lang-btn {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    padding: 7px 9px;
    margin: 0;
    border-radius: 999px;
    background: var(--cream);
    color: var(--green);
    border: 1px solid rgba(0, 0, 0, .06);
    line-height: 1.3;
  }

  .nav nav .lang-btn {
    flex: 0 0 auto;
    font-weight: 800;
    border-color: currentColor;
  }

  /* The header no longer sticks, so the notices that used to sit under it stick to the very top instead. */
  .active-order-banner,
  .rate-nudge {
    top: 0;
  }

  section[id] {
    scroll-margin-top: 16px;
  }
}

@media (max-width: 380px) {
  .nav nav {
    font-size: 11.5px;
    gap: 5px;
  }

  .nav nav a,
  .nav nav .lang-btn {
    padding: 6px 7px;
  }
}

/* "مكالمة مجانية" (call-link): a free in-browser voice call to the restaurant. */
.free-call-link {
  font-weight: 800;
}

.hero-actions {
  flex-wrap: wrap;
}
