/* Beltway Burgers and Bites
   Visual idea: road signs in the logo's colors. Navy panels with an inset
   white border (like blue service signs) carry the important information;
   orange (the logo's banner, like a detour sign) marks actions and tabs.
   Everything around them stays quiet. */

:root {
  --navy: #1e2a52;
  --navy-deep: #161f3e;
  --orange: #d7522d;
  --orange-strong: #b8411c;
  --sign-text: #ffffff;
  --sign-muted: #d3d9ec;
  --bg: #eef0ed;
  --surface: #ffffff;
  --ink: #1d2022;
  --muted: #555c61;
  --line: #d2d7d2;
  --error: #b3261e;
  --error-bg: #fdecea;
  --success: #1e7a4c;
  --font: "Overpass", "Highway Gothic", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

/* Dark theme. Default: follow the device setting. The header switch sets
   <html data-theme="light|dark"> (saved in localStorage) to override it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #26356b;
    --bg: #15171c;
    --surface: #222528;
    --ink: #eef0ed;
    --muted: #a7aeb3;
    --line: #363a44;
    --error: #ff8a80;
    --error-bg: #3a1f1e;
    --success: #7fd1a8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --navy: #26356b;
  --bg: #15171c;
  --surface: #222528;
  --ink: #eef0ed;
  --muted: #a7aeb3;
  --line: #363a44;
  --error: #ff8a80;
  --error-bg: #3a1f1e;
  --success: #7fd1a8;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }


:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--orange-strong);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus { inset-block-start: 1rem; }

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3rem;
  padding: 0.65rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.btn-order { background: var(--orange-strong); color: #fff; }
.btn-order:hover { background: #c9491f; }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: rgb(255 255 255 / 0.1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { filter: brightness(1.2); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Header and navigation --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-block-end: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100% - 1.5rem, 72rem);
  margin-inline: auto;
  padding: 0.5rem 4px;
  overflow: hidden; /* lets the script measure whether the inline row fits */
}
.header-inner > * { flex-shrink: 0; white-space: nowrap; }

.site-logo { margin-inline-end: auto; border-radius: 10px; }
.site-logo img { width: 72px; height: 72px; border-radius: 50%; background: #fff; }

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-block-size: 3rem;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.menu-button svg { width: 1.25rem; height: 1.25rem; }

.site-menu { list-style: none; margin: 0; padding: 0.5rem; }
.site-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.site-menu a:hover { background: var(--bg); }
.site-menu a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--orange); }

/* Narrow layout: the list is a popover under the button */
.site-header .menu-button { anchor-name: --menu-button; }
.site-header .site-menu {
  position: fixed;
  inset: auto;
  inset-block-start: 5.5rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(80dvw, 20rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 6rem);
  margin: 0.5rem 0 0;
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgb(0 0 0 / 0.2);
}

/* Wide layout: the same list sits inline */
.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
  position: static;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  inline-size: auto;
  max-inline-size: none;
  block-size: auto;
  max-block-size: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.is-measuring * { transition: none !important; }

/* Light/dark switch: an icon button inline on wide screens, a labelled row in the menu popover */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  inline-size: 100%;
  min-block-size: 3rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}
.theme-toggle:hover { background: var(--bg); }
.theme-toggle svg { flex: none; width: 1.3rem; height: 1.3rem; }
.theme-toggle .icon-sun,
.theme-toggle[aria-pressed="true"] .icon-moon { display: none; }
.theme-toggle[aria-pressed="true"] .icon-sun { display: block; }
.site-header:not(.is-wide) .theme-item { margin-block-start: 0.25rem; padding-block-start: 0.25rem; border-block-start: 1px solid var(--line); }
.site-header.is-wide .theme-item { margin-inline-start: 0.5rem; }
.site-header.is-wide .theme-toggle {
  inline-size: 3rem;
  justify-content: center;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
}
.site-header.is-wide .theme-label {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

@supports not selector(:popover-open) {
  [popover]:not(.\:popover-open) { display: none; }
}

/* Road backdrop: a faint road curve (images/road-curve.svg, our own artwork)
   behind the sections that hold a navy sign. The SVG is used as a mask over
   the text color, so it reads as faint dark lines in light mode and faint light
   lines in dark mode. Add class="no-road" to a section to leave it out. */
main > section:has(.sign):not(.no-road) { position: relative; isolation: isolate; }
main > section:has(.sign):not(.no-road)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--ink);
  opacity: 0.55;
  -webkit-mask: url("/images/road-curve.svg") right bottom / cover no-repeat;
  mask: url("/images/road-curve.svg") right bottom / cover no-repeat;
}

/* Guide signs ------------------------------------------------------------- */

.sign {
  background: var(--navy);
  color: var(--sign-text);
  border-radius: 18px;
  box-shadow: inset 0 0 0 6px var(--navy), inset 0 0 0 9px #fff;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.sign p { color: var(--sign-muted); }

.sign-tab {
  display: inline-block;
  margin: 0 0 -3px 1.5rem;
  padding: 0.75rem 1.3rem 0.6rem;
  background: var(--orange);
  color: var(--navy-deep);
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 0 0 5px var(--orange), inset 0 0 0 8px var(--navy-deep);
  font-size: 1.2rem;
  font-weight: 800;
  position: relative;
}

/* Home: hero --------------------------------------------------------------- */

.hero { padding-block: clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 7vw, 5rem); margin-block-end: 0.3em; }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 1.75rem; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }

@media (min-width: 60rem) {
  /* The tabs sit in row 1 and the sign in row 2, so the photo (row 2) centers on the
     navy sign itself rather than on sign + tabs. */
  .hero-grid { grid-template-columns: 1.05fr 1fr; row-gap: 0; }
  .hero-sign { display: contents; }
  .sign-tabs { grid-column: 1; grid-row: 1; }
  .hero-sign .sign { grid-column: 1; grid-row: 2; }
  .hero-photo { grid-column: 2; grid-row: 2; }
}

/* Highway guide-sign details on the hero: tabs along the top edge and an exit arrow */
.sign-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-inline: clamp(0.75rem, 3vw, 1.5rem);
  margin-block-end: -3px;
}
.sign-tabs .sign-tab { margin: 0; white-space: nowrap; font-size: clamp(1rem, 3.8vw, 1.2rem); }
.exit-tab {
  position: relative;
  margin: 0;
  padding: 0.75rem 1.2rem 0.6rem;
  background: var(--navy);
  color: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 0 0 5px var(--navy), inset 0 0 0 8px #fff;
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
}
.exit-tab span { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8em; margin-inline-end: 0.15em; }
/* Small white plaque above the exit tab, like the "NO CASH" plate on a toll sign */
.exit-stack { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
@media (max-width: 34rem) { .exit-stack { display: none; } }
.plaque {
  margin: 0;
  padding: 0.2rem 0.6rem 0.1rem;
  background: #fff;
  color: #111;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3.5px #111;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Route line above the name: an original white shield (not an official marker) + road name */
.route {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  padding-inline-end: clamp(3.5rem, 8vw, 5.5rem); /* clear of the exit arrow */
  color: #fff;
  font-size: clamp(0.875rem, 1.8vw, 1.25rem);
  font-weight: 800;
  line-height: 1.15;
}
.route-name { white-space: nowrap; }
.route-shield {
  display: inline-grid;
  place-items: center;
  align-content: center;
  flex: none;
  inline-size: 3.1rem;
  block-size: 3.3rem;
  padding-block-end: 0.3rem;
  background: #fff;
  color: #111;
  border-radius: 0.45rem 0.45rem 50% 50% / 0.45rem 0.45rem 38% 38%;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3.5px #111;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}
.route-shield span { font-size: 0.42rem; letter-spacing: 0.08em; text-transform: uppercase; margin-block-end: 0.1rem; }


.hero .sign { position: relative; }
.exit-arrow {
  position: absolute;
  inset-block-start: clamp(1.75rem, 4vw, 2.75rem);
  inset-inline-end: clamp(1.75rem, 4vw, 2.75rem);
  width: clamp(3rem, 7vw, 4.75rem);
  height: auto;
  color: #fff;
}

/* Home: food tiles -------------------------------------------------------- */

.food-head { display: grid; gap: 1.25rem 3rem; align-items: end; margin-block-end: 2.25rem; }
@media (min-width: 52rem) { .food-head { grid-template-columns: 1fr auto; } }
.food-head p { margin: 0; }

.food-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.food-tile { display: block; text-decoration: none; color: inherit; border-radius: 14px; }
.food-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }

/* Small road sign that overlaps the bottom of each photo */
.tile-sign {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: -1.9rem 0 0 0.9rem;
  padding: 0.7rem 1.15rem 0.55rem;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 6px #fff;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
}
.tile-sign svg { width: 1.2rem; height: 1.2rem; flex: none; }
.tile-desc { display: block; margin: 0.6rem 0.25rem 0; color: var(--muted); }
.food-tile:hover .tile-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.2em; }

/* Home: gallery ------------------------------------------------------------ */

.gallery-section { padding-block-start: 0; }

/* Map with an address sign underneath (kept clear of Google's attribution) */
.map-card { display: flex; flex-direction: column; gap: 0.75rem; }
.map-card iframe {
  flex: 1;
  inline-size: 100%;
  min-block-size: 16rem;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
}
.map-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
}
.map-sign address { font-style: normal; font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.gallery { display: grid; gap: 1rem; margin-block-start: 1.75rem; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(2, clamp(12rem, 22vw, 18rem)); }
  .gallery img { aspect-ratio: auto; height: 100%; }
  .gallery .g-main { grid-row: span 2; }
}

/* Home: loyalty ------------------------------------------------------------ */

.loyalty { background: var(--surface); }
.loyalty-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) { .loyalty-grid { grid-template-columns: 1fr 1fr; } }
.loyalty-phones {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1.25rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.loyalty-phones img { width: 46%; }
.fine-print { font-size: 0.875rem; color: var(--muted); margin-block-start: 1.25rem; }

/* Visit sign --------------------------------------------------------------- */

/* Two destinations on one guide sign, split by a white rule */
.visit-grid { display: grid; gap: 1.25rem; margin-block-start: 1rem; }
.visit-grid > div + div { padding-block-start: 1.25rem; border-block-start: 3px solid #fff; }
@media (min-width: 48rem) {
  .visit-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .visit-grid > div + div { padding-block-start: 0; padding-inline-start: 2rem; border-block-start: 0; border-inline-start: 3px solid #fff; }
}
.visit-grid h3 { font-size: 1rem; font-weight: 700; color: var(--sign-muted); margin-block-end: 0.35rem; }
.visit-grid p, .visit-grid address { color: #fff; font-style: normal; font-size: 1.15rem; margin: 0 0 0.4rem; }
.visit-grid a { font-weight: 700; }

.hours { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; margin: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.sign .hours { font-size: 1.15rem; }

/* Inner page heads --------------------------------------------------------- */

.page-head { padding-block: clamp(2rem, 4vw, 3rem); }
.page-head-grid { display: grid; gap: 1.5rem; }
.page-head-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.page-head-map iframe { display: block; inline-size: 100%; block-size: 100%; min-block-size: 16rem; border: 0; border-radius: 14px; background: var(--surface); }
@media (min-width: 56rem) {
  .page-head-grid { grid-template-columns: 1.2fr 1fr; align-items: stretch; }
  .page-head-photo img { aspect-ratio: auto; height: 100%; min-block-size: 14rem; }
}
.page-head .sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 0; }
.page-head p { margin: 0.4rem 0 0; }

/* Menu page ---------------------------------------------------------------- */

.menu-widget {
  min-block-size: 24rem;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: 14px;
}

/* Contact page ------------------------------------------------------------- */

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }
.contact-details { display: grid; gap: 1.5rem; margin-block-start: 2rem; }
.contact-details h3 { font-size: 1rem; color: var(--muted); font-weight: 700; margin-block-end: 0.25rem; }
.contact-details p, .contact-details address { font-style: normal; font-size: 1.15rem; margin: 0; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.contact-form h2 { font-size: 1.6rem; }
.field { display: grid; gap: 0.35rem; margin-block-end: 1.15rem; }
.field label { font-weight: 700; }
.hint { color: var(--muted); font-size: 0.9rem; }
.field input, .field textarea {
  inline-size: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 10px;
}
.field textarea { min-block-size: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--navy); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--error); background: var(--error-bg); }
.error-msg { display: none; align-items: center; gap: 0.4rem; color: var(--error); font-size: 0.9rem; font-weight: 600; }
.error-msg svg { width: 1rem; height: 1rem; flex: none; }
.field :user-invalid + .error-msg { display: flex; }

.form-status { margin: 1rem 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* Footer ------------------------------------------------------------------- */

.site-footer {
  position: relative;
  background: var(--navy-deep);
  color: #d3d9ec;
  padding-block: 3rem 1.5rem;
  font-size: 0.95rem;
}
/* The footer reads as the road itself: a faint center line near its top edge. */
.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 1rem;
  inset-inline: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.22) 0 2.25rem, transparent 2.25rem 3.75rem);
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.6fr 1.2fr 1.4fr auto; } }
.footer-grid p, .footer-grid address { margin: 0 0 0.3rem; font-style: normal; }
.footer-name { font-weight: 800; color: #fff; }
.legal { max-width: none; margin-block-start: 2rem; color: #a3acc8; font-size: 0.85rem; }

@media (forced-colors: active) {
  .sign, .sign-tab { border: 3px solid CanvasText; }
  .site-menu a[aria-current="page"] { text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* 404 page ------------------------------------------------------------------ */

.lost { padding-block: clamp(3rem, 8vw, 6rem); }
.lost-wrap { max-width: 44rem; }
.lost .sign h1 { padding-inline-end: clamp(3.5rem, 8vw, 5.5rem); /* clear of the U-turn arrow */ }
