/* =========================================================================
   50's Roadhouse — stylesheet
   No framework, no build step: one hand-written, mobile-first file.
   Palette: cherry red / chrome-teal / cream / near-black, atomic-age feel.
   ========================================================================= */

:root {
  --color-red: #b3211e;
  --color-red-dark: #8c1a17;
  --color-teal: #0f8a8a;
  --color-teal-dark: #0b6868;
  --color-cream: #faf3e3;
  --color-cream-dark: #f0e4c8;
  --color-ink: #221a15;
  --color-ink-soft: #4a3d33;
  --color-chrome: #d8d2c4;
  --color-white: #ffffff;
  --color-gold: #e0a92e;

  --font-display: "Bungee", "Arial Black", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 4px 14px rgba(34, 26, 21, 0.18);
  --max-width: 1180px;

  color-scheme: light;
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                            */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-red);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw + 1rem, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.5vw + 1rem, 1.5rem); color: var(--color-ink); }

p { margin: 0 0 1em; max-width: 65ch; }

a { color: var(--color-teal-dark); text-decoration-thickness: 2px; }
a:hover { color: var(--color-red); }

ul, ol { padding-left: 1.25em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Visually-hidden but screen-reader accessible */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

/* Visible focus state everywhere (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.4em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--color-red-dark); color: var(--color-white); }

.btn-secondary {
  background: var(--color-teal);
  color: var(--color-white);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { background: var(--color-teal-dark); color: var(--color-white); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: var(--color-white); }

.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------------- */
/* Top utility bar                                                         */
/* ---------------------------------------------------------------------- */
.top-bar {
  background: var(--color-ink);
  color: var(--color-cream);
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.4rem;
}
.top-bar a { color: var(--color-cream); }
.top-bar__item { display: inline-flex; align-items: center; gap: 0.4em; white-space: nowrap; }
.top-bar__item svg { width: 1em; height: 1em; }

/* ---------------------------------------------------------------------- */
/* Header / primary nav                                                    */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream);
  border-bottom: 4px solid var(--color-red);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw + 0.6rem, 1.6rem);
  color: var(--color-red);
  text-decoration: none;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.logo span { color: var(--color-teal-dark); font-family: var(--font-body); font-weight: 700; font-size: 0.55em; letter-spacing: 0.08em; text-transform: uppercase; }
.logo:hover { color: var(--color-red-dark); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

.primary-nav {
  display: none;
  width: 100%;
}
.primary-nav.is-open { display: block; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.primary-nav a {
  display: block;
  padding: 0.6em 0.2em;
  text-decoration: none;
  font-weight: 700;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-chrome);
}
.primary-nav a[aria-current="page"] { color: var(--color-red); }
.primary-nav a:hover { color: var(--color-red); }

.header-cta { display: none; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; width: auto; }
  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }
  .primary-nav a { border-bottom: none; padding: 0.3em 0; position: relative; }
  .primary-nav a[aria-current="page"]::after,
  .primary-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 3px;
    background: var(--color-red);
    border-radius: 2px;
  }
  .header-cta { display: flex; gap: 0.6rem; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  background:
    repeating-linear-gradient(45deg, rgba(15,138,138,0.06) 0 40px, transparent 40px 80px),
    linear-gradient(180deg, var(--color-cream-dark), var(--color-cream));
  border-bottom: 6px solid var(--color-teal);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero .container { display: grid; gap: 2rem; align-items: center; }
.hero__eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-white);
  background: var(--color-teal);
  padding: 0.35em 0.9em;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero__rating {
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--color-ink-soft);
}
.hero__rating strong { color: var(--color-red); }

.hero-art {
  aspect-ratio: 11 / 6;
  border-radius: var(--radius);
  border: 6px solid var(--color-ink);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 760px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------------------------------------------------------------------- */
/* Sections                                                                */
/* ---------------------------------------------------------------------- */
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--alt { background: var(--color-white); }
.section__head { max-width: 65ch; margin-bottom: 2rem; }

.grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-chrome);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card--teal { border-top: 5px solid var(--color-teal); }
.card--red { border-top: 5px solid var(--color-red); }
.card--gold { border-top: 5px solid var(--color-gold); }

/* Placeholder image slot: keeps layout + performance intact until real
   photography is supplied (see images/README.md for the shot list). */
.photo-slot {
  background: repeating-linear-gradient(135deg, var(--color-chrome) 0 14px, var(--color-cream-dark) 14px 28px);
  border: 2px dashed var(--color-ink-soft);
  border-radius: var(--radius);
  aspect-ratio: var(--ratio, 4/3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-soft);
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}

/* Real photograph, once available -- same footprint/rounding as
   .photo-slot so it drops into the same layouts without other changes. */
.photo {
  aspect-ratio: var(--ratio, 4/3);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------------------------------- */
/* Menu page specifics                                                     */
/* ---------------------------------------------------------------------- */
.menu-group { margin-bottom: 3rem; }
.menu-group > h2 { border-bottom: 4px solid var(--color-red); padding-bottom: 0.3rem; margin-bottom: 1.25rem; }
.menu-section { margin-bottom: 2.5rem; }
.menu-section__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 3px solid var(--color-teal);
  padding-bottom: 0.4rem;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--color-chrome);
}
.menu-item__name { font-weight: 700; }
.menu-item__name small { display: block; font-weight: 400; color: var(--color-ink-soft); }
.menu-item__name small.menu-item__mods { color: var(--color-teal-dark); font-weight: 700; margin-top: 0.25em; }
.menu-item__price { font-weight: 700; color: var(--color-red); white-space: nowrap; flex: none; }
.menu-item__price em { color: var(--color-ink-soft); font-style: italic; font-weight: 400; font-size: 0.85em; }
.menu-note {
  background: var(--color-cream-dark);
  border-left: 5px solid var(--color-gold);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}

/* ---------------------------------------------------------------------- */
/* Hours table                                                             */
/* ---------------------------------------------------------------------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.5em 0.75em;
  border-bottom: 1px solid var(--color-chrome);
}
.hours-table tr:last-child td { border-bottom: none; }
.hours-table .is-today { background: var(--color-cream-dark); font-weight: 700; }

/* ---------------------------------------------------------------------- */
/* FAQ (details/summary — zero JS accordion)                               */
/* ---------------------------------------------------------------------- */
.faq { border: 1px solid var(--color-chrome); border-radius: var(--radius); overflow: hidden; margin-bottom: 0.75rem; background: var(--color-white); }
.faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--color-red); }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 1.25rem 1.1rem; margin: 0; }

/* ---------------------------------------------------------------------- */
/* Contact form                                                            */
/* ---------------------------------------------------------------------- */
.form-field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-weight: 700; }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.7em 0.85em;
  border: 2px solid var(--color-chrome);
  border-radius: var(--radius);
  font: inherit;
  background: var(--color-white);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-required { color: var(--color-red); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-cream);
  padding-block: 2.5rem;
  margin-top: 2rem;
}
.site-footer a { color: var(--color-cream); }
.site-footer a:hover { color: var(--color-gold); }
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h2 { color: var(--color-gold); font-size: 1.1rem; margin-bottom: 0.6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4em; }
.footer-bottom {
  border-top: 1px solid rgba(250,243,227,0.2);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-chrome);
}
.social-links { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--color-cream);
  border-radius: 50%;
}
.social-links svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------- */
/* Sticky mobile action bar — call / directions / menu always in thumb reach */
/* ---------------------------------------------------------------------- */
.mobile-action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--color-ink);
  border-top: 3px solid var(--color-gold);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.25);
}
.mobile-action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.25rem 0.7rem;
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
}
.mobile-action-bar svg { width: 22px; height: 22px; }
.mobile-action-bar a:hover { color: var(--color-gold); }
body { padding-bottom: 72px; }

@media (min-width: 860px) {
  .mobile-action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------------------------------------------------------------------- */
/* Breadcrumbs                                                             */
/* ---------------------------------------------------------------------- */
.breadcrumbs {
  font-size: 0.85rem;
  padding-block: 0.75rem;
  color: var(--color-ink-soft);
}
.breadcrumbs a { color: var(--color-ink-soft); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35em; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.35em; color: var(--color-chrome); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 0.5rem; }

/* ---------------------------------------------------------------------- */
/* Order To Go (pickup) builder                                            */
/* ---------------------------------------------------------------------- */
.pickup-banner {
  background: var(--color-teal);
  color: var(--color-white);
  text-align: center;
  font-weight: 700;
  padding: 0.75rem 1rem;
}
.pickup-banner strong { text-decoration: underline; }

.order-layout {
  display: grid;
  gap: 2rem;
}
/* On mobile the menu list is long (113 items) -- show the running order
   total first and keep it sticky near the top, instead of burying it
   below a full-page scroll of menu items. */
.order-summary { order: -1; }
@media (min-width: 960px) {
  .order-layout { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .order-summary { order: 0; position: sticky; top: 90px; }
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dotted var(--color-chrome);
}
.order-item__info { flex: 1; min-width: 0; }
.order-item__info .menu-item__name { display: block; }
.order-item__price { color: var(--color-red); font-weight: 700; white-space: nowrap; }
.order-item__mods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.5rem;
}
.order-item__mods label {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  cursor: pointer;
}
.order-item__mods input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-teal); }
.order-summary__line em { color: var(--color-ink-soft); font-style: italic; font-weight: 400; }

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}
.qty-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--color-red);
  background: var(--color-white);
  color: var(--color-red);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover { background: var(--color-red); color: var(--color-white); }
.qty-value { min-width: 1.5em; text-align: center; font-weight: 700; }

.order-summary {
  /* Not sticky on mobile: the layout is a single stacked column there
     (see .order-layout), and a sticky box in a stacked column floats
     over -- and blocks clicks on -- whatever menu item scrolls beneath
     it. Sticky is safe only once .order-summary has its own column,
     at the 960px breakpoint below. */
  background: var(--color-white);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.order-summary h2 { margin-top: 0; }
.order-summary__line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--color-chrome);
  font-size: 0.95rem;
}
.order-summary__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-red);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--color-ink);
}
.order-summary__empty { color: var(--color-ink-soft); font-style: italic; }
.no-price-note { font-size: 0.8em; color: var(--color-ink-soft); font-style: italic; }

.category-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.category-jump a {
  display: inline-block;
  padding: 0.4em 0.9em;
  border: 2px solid var(--color-teal);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-teal-dark);
}
.category-jump a:hover { background: var(--color-teal); color: var(--color-white); }
