/* Tablets */
@media (max-width: 980px) {
  .navlinks {
    gap: 16px;
  }

  .navlinks a {
    font-size: 0.73rem;
  }

  .hero::before {
    inset-inline-start: 28%;
  }

  .intro-grid,
  .experience-grid,
  .visit-grid {
    gap: 5vw;
  }

  .menu-card-body {
    padding: 26px;
  }
}

/* Celulares */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  main section[id] {
    scroll-margin-top: 0;
  }

  .intro,
  .menu,
  .experience,
  .visit {
    padding-block-start: 60px;
  }


  #cardapio,
  #experiencia {
    padding-block-start: 32px;
  }

  .wrap {
    width: min(100% - 36px, 1240px);
  }

  .nav {
    min-height: 72px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    max-height: calc(100dvh - 73px);
    overflow-y: auto;
    overscroll-behavior: contain;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 18px 22px;
    border-bottom: 1px solid var(--line);
    background: #1a1b16;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  }

  .navlinks.open {
    display: flex;
  }

  .navlinks a {
    padding: 14px 4px;
    font-size: 0.9rem;
  }

  .navlinks .nav-cta {
    margin-top: 8px;
    padding: 12px 16px;
    text-align: center;
  }

  .hero {
  min-height: auto;
  align-items: center;
  }

  .hero::before {
    inset: 0;
    background-position: 61% center;
  }

  .hero::after {
    background: linear-gradient(
      0deg,
      #161713 4%,
      rgba(22, 23, 19, 0.92) 38%,
      rgba(22, 23, 19, 0.2) 100%
    );
  }

  .hero .wrap {
  padding-block: 64px 56px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 11vw, 5.6rem);
  }

  .hero-index {
    display: none;
  }

  .ticker-inner {
    width: min(100% - 36px, 1240px);
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .ticker-inner span:not(:first-child) {
    display: none;
  }

  .intro-grid,
  .experience-grid,
  .visit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .kanji {
    min-height: 260px;
    font-size: 8rem;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    max-width: 600px;
    margin-top: 20px;
  }

  .menu-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .menu-card {
    width: 100%;
    min-width: 0;
  }

  .menu-card > img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .menu-card-body {
    min-width: 0;
    padding: 22px;
  }

  .experience-list li {
    font-size: 1rem;
  }

  .visit-box {
    box-shadow: 8px 8px 0 #c9b8a0;
  }

}

/* Celulares estreitos */
@media (max-width: 420px) {
  .brand {
    font-size: 1.2rem;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .hero h1 {
    font-size: clamp(3.05rem, 13vw, 3.65rem);
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .ticker-inner {
    font-size: 0.66rem;
  }
}

/* Preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .js-motion .reveal {
    opacity: 1;
    transform: none;
  }
}


@media (max-width: 760px) {
  :root {
    --mobile-order-height: calc(
      80px + env(safe-area-inset-bottom, 0px)
    );
  }

  /* Reserva espaço para a barra não cobrir o rodapé. */
  body {
    padding-bottom: var(--mobile-order-height);
  }

  .mobile-order {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    height: var(--mobile-order-height);
    padding: 12px
      max(18px, env(safe-area-inset-right, 0px))
      calc(12px + env(safe-area-inset-bottom, 0px))
      max(18px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--line);
    background: var(--ink);
    box-shadow: 0 -4px 18px rgb(0 0 0 / 15%);
  }

  .mobile-order-link {
    width: 100%;
    min-height: 56px;
    padding-inline: 12px;
    font-size: 0.9rem;
  }

  .mobile-order-link:hover {
    transform: none;
  }

  /* WhatsApp permanece acima da barra de pedido. */
  .whatsapp-widget {
    bottom: calc(var(--mobile-order-height) + 16px);
  }

  .whatsapp-popup {
    max-height: calc(
      100dvh - var(--mobile-order-height) - 110px
    );
  }

  .footer .wrap {
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  /* O pedido já está disponível na barra fixa. */
  .hero-actions > .button:not(.ghost) {
    display: none;
  }

  .hero-actions > .button.ghost {
    width: 100%;
  }
}