/* Shared responsive navigation and mobile usability improvements. */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1200;
  padding: 10px 14px;
  background: #000;
  color: #fff;
  font: 600 12px/1.2 var(--font-mono, monospace);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong, #b8b4ad);
  border-radius: 50%;
  background: transparent;
  color: var(--true-black, #000);
  cursor: pointer;
}

.site-menu-toggle-lines,
.site-menu-toggle-lines::before,
.site-menu-toggle-lines::after {
  display: block;
  width: 19px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-menu-toggle-lines {
  position: relative;
}

.site-menu-toggle-lines::before,
.site-menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-menu-toggle-lines::before { top: -6px; }
.site-menu-toggle-lines::after { top: 6px; }

header.is-menu-open .site-menu-toggle-lines { background: transparent; }
header.is-menu-open .site-menu-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
header.is-menu-open .site-menu-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

:where(main, section, div)[id] {
  scroll-margin-top: 90px;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--brick, #8b3a2a);
  outline-offset: 3px;
}

img { max-width: 100%; }

@media (max-width: 1100px) {
  html.nav-js body.nav-drawer-open { overflow: hidden; }

  body > header {
    position: sticky;
    top: 0;
    z-index: 900;
    padding: 10px 0 !important;
    background: rgba(244, 242, 237, 0.98);
    box-shadow: 0 1px 0 var(--rule, #cfcbc4);
  }

  body > header + .nav-accent { display: none; }

  body > header .nav {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
  }

  body > header .wordmark-logo {
    width: auto;
    height: 52px !important;
  }

  .site-menu-toggle { display: inline-flex; }

  body > header .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 910;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0 !important;
    width: 100%;
    gap: 0 !important;
    padding: 10px 14px;
    align-items: stretch;
    justify-content: stretch !important;
    border: 1px solid var(--rule-strong, #b8b4ad);
    background: var(--paper, #f4f2ed);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
  }

  html.nav-js body > header .nav-links {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: none;
  }

  html.nav-js body > header.is-menu-open .nav-links {
    max-height: calc(100dvh - 84px);
    padding-top: 10px;
    padding-bottom: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      max-height 0.28s ease,
      padding 0.28s ease,
      opacity 0.18s ease,
      transform 0.18s ease;
  }

  body > header .nav-links > a {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 12px !important;
    border-bottom: 1px solid var(--rule, #cfcbc4);
    line-height: 1.2;
  }

  body > header .nav-links > a:nth-child(odd):not(.nav-link-reserve) {
    border-right: 1px solid var(--rule, #cfcbc4);
  }

  body > header .nav-links > a.nav-link-reserve {
    grid-column: 1 / -1;
    min-height: 52px;
    flex-direction: row !important;
    justify-content: flex-start;
    align-items: center !important;
    gap: 10px;
    margin-top: 8px;
    padding-right: 16px !important;
    padding-left: 16px !important;
    border: 0;
    border-radius: 2px;
    background: var(--brick, #8b3a2a);
    color: var(--paper, #f4f2ed);
  }

  body > header .nav-links > a.nav-link-reserve .nav-link-reserve-note {
    margin: 0;
    color: inherit;
    transform: rotate(-2deg);
  }

  body > header .nav-links > a[aria-current="page"],
  body > header .nav-links > a.active {
    color: var(--brick, #8b3a2a);
    font-weight: 700;
  }

  h1, h2, h3 { overflow-wrap: break-word; }
}

@media (max-width: 600px) {
  .container {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    min-height: 48px;
    font-size: 16px !important;
  }

  .field-grid.cols-2,
  .field-grid.cols-3,
  .field-grid.phone-row,
  .field-grid.address-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  :where(.btn, button[type="submit"], input[type="submit"], .form-submit) {
    min-height: 46px;
  }

  .hero-cta,
  .hero-cta-row,
  .cta-row,
  .form-actions {
    width: 100%;
  }

  .hero-cta > .btn,
  .hero-cta-row > .btn,
  .cta-row > .btn,
  .form-actions > button {
    justify-content: center;
  }

  .foot-bottom .socials {
    row-gap: 12px !important;
    flex-wrap: wrap;
  }

  .dish-photo-trigger {
    width: 34px !important;
    height: 34px !important;
    margin-left: 8px !important;
    vertical-align: -11px !important;
  }

  .dish-photo-popover {
    position: fixed !important;
    right: 16px !important;
    bottom: 16px !important;
    left: 16px !important;
    width: auto !important;
    max-width: 320px;
    margin: 0 auto;
    transform: translateY(12px) !important;
  }

  .dish-photo-trigger:hover .dish-photo-popover,
  .dish-photo-trigger:focus-visible .dish-photo-popover {
    transform: translateY(0) !important;
  }

  .dish-photo-popover::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu-toggle-lines,
  .site-menu-toggle-lines::before,
  .site-menu-toggle-lines::after,
  html.nav-js body > header .nav-links,
  .skip-link {
    transition: none !important;
  }
}
