/* ==========================================================================
   Stage Door Deli — stylesheet
   Tokens: ink #0f1416, steel-blue #2c4a5e, amber #d97b29, paper #f2ede3
   Type: Fraunces (display) + Inter (body/UI)
   ========================================================================== */

:root {
  --ink: #0f1416;
  --char: #1c2426;
  --steel-blue: #2c4a5e;
  --steel-blue-light: #3d6178;
  --steel-light: #8fa4ae;
  --amber: #d97b29;
  --amber-light: #e89a55;
  --paper: #f2ede3;
  --paper-dim: #d9d2c2;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1200px;
  --radius: 6px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-sm); }
}

/* Visible focus state everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.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 {
  position: absolute;
  left: 0; top: 0;
  transform: translateY(-100%);
  background: var(--amber);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--paper);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  margin-bottom: var(--space-sm);
}

.section-lede {
  max-width: 60ch;
  color: var(--steel-light);
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: var(--space-lg);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-amber {
  background: var(--amber);
  color: var(--ink);
}
.btn-amber:hover { background: var(--amber-light); }

.btn-outline {
  background: transparent;
  border-color: var(--paper-dim);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

.btn-outline-dark {
  background: transparent;
  border-color: rgba(15,20,22,0.3);
  color: var(--ink);
}
.btn-outline-dark:hover { border-color: var(--ink); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(15, 20, 22, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(242, 237, 227, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
  white-space: nowrap;
}
.nav-brand span { color: var(--amber); }

.nav-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--paper);
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }

.nav-cta {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (min-width: 861px) {
  .nav-cta { display: inline-flex; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(242,237,227,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.is-open { max-height: 480px; }
  .nav-links a {
    width: 100%;
    padding: 1rem var(--space-md);
    border-top: 1px solid rgba(242,237,227,0.06);
  }
  .nav-links .nav-cta-mobile {
    display: block;
    padding: 1rem var(--space-md) 1.25rem;
  }
  .nav-toggle { display: block; }
}

@media (min-width: 861px) {
  .nav-cta-mobile { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 20%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,20,22,0.55) 0%, rgba(15,20,22,0.35) 35%, rgba(15,20,22,0.92) 92%),
    linear-gradient(90deg, rgba(15,20,22,0.75) 0%, rgba(15,20,22,0.15) 55%);
}

.hero-inner {
  padding: calc(var(--space-xl) + 64px) var(--space-md) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

.hero-tagline {
  margin-top: var(--space-sm);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--amber-light);
  max-width: 32ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--space-md);
}

.hero-hours {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(242,237,227,0.18);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--steel-light);
  flex-wrap: wrap;
}
.hero-hours strong { color: var(--paper); font-weight: 700; }

/* ==========================================================================
   Sections (general)
   ========================================================================== */
.section {
  padding: var(--space-xl) 0;
}

.section-alt {
  background: var(--char);
}

/* ---- Reveal-on-scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Story
   ========================================================================== */
.story {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .story-media { order: 2; }
  .story-copy { order: 1; }
}

.story-media img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.story-copy p {
  margin-bottom: var(--space-sm);
  color: var(--steel-light);
  font-size: 1.05rem;
  max-width: 56ch;
}

.story-copy p:last-child { margin-bottom: 0; }

.story-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--paper);
  border-left: 3px solid var(--amber);
  padding-left: var(--space-sm);
  margin: var(--space-md) 0;
}

/* ==========================================================================
   Menu board (signature element)
   ========================================================================== */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-lg);
}

.menu-tab {
  background: transparent;
  border: 1px solid rgba(242,237,227,0.25);
  color: var(--steel-light);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.menu-tab:hover { border-color: var(--amber); color: var(--paper); }
.menu-tab[aria-selected="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.menu-category {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.menu-category + .menu-category {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(242,237,227,0.1);
}

/* Only hide non-active panels once JS confirms tab behavior is wired up */
.js-tabs .menu-category[hidden] { display: none; }
.js-tabs .menu-category + .menu-category {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.menu-category-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-light);
  margin-bottom: var(--space-sm);
}

/* Tab buttons already convey the category once JS tabs are active */
.js-tabs .menu-category-title { display: none; }

@media (min-width: 900px) {
  .menu-category {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.menu-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.menu-photo img { width: 100%; height: 100%; object-fit: cover; }

.menu-board {
  border-top: 2px solid var(--amber);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(242,237,227,0.12);
}

.menu-item-name {
  font-weight: 600;
  color: var(--paper);
}

.menu-item-desc {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--steel-light);
  margin-top: 0.2rem;
}

.menu-item-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--amber-light);
  white-space: nowrap;
}

.menu-note {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--steel-light);
}

.menu-order-links {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(242,237,227,0.12);
}

.menu-order-links h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--paper);
}

.order-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   Catering
   ========================================================================== */
.catering-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 700px) {
  .catering-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1050px) {
  .catering-grid { grid-template-columns: repeat(4, 1fr); }
}

.catering-card {
  background: var(--ink);
  border: 1px solid rgba(242,237,227,0.1);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.catering-card:hover { border-color: var(--amber); transform: translateY(-3px); }

.catering-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.catering-price {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--amber-light);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.catering-card p {
  color: var(--steel-light);
  font-size: 0.9rem;
}

.catering-cta {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--steel-blue);
  border-radius: var(--radius);
}
.catering-cta p {
  color: var(--paper);
  margin: 0;
  max-width: 40ch;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(5, 1fr); gap: var(--space-sm); }
}

.gallery-item {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.2s ease;
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  box-shadow: inset 0 0 0 2px var(--amber);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,20,22,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 82vh;
  border-radius: var(--radius);
}

.lightbox-caption {
  position: absolute;
  bottom: var(--space-md);
  left: 0; right: 0;
  text-align: center;
  color: var(--steel-light);
  font-size: 0.9rem;
  padding: 0 var(--space-md);
}

.lightbox-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: transparent;
  border: 1px solid rgba(242,237,227,0.3);
  color: var(--paper);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { border-color: var(--amber); color: var(--amber); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(242,237,227,0.3);
  color: var(--paper);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox-nav:hover { border-color: var(--amber); color: var(--amber); }
.lightbox-prev { left: var(--space-sm); }
.lightbox-next { right: var(--space-sm); }

/* ==========================================================================
   Visit
   ========================================================================== */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 1fr 1fr; }
}

.visit-card {
  background: var(--ink);
  border: 1px solid rgba(242,237,227,0.1);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.visit-card h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-light);
  margin-bottom: var(--space-sm);
}

.visit-card address {
  font-style: normal;
  margin-bottom: var(--space-sm);
  color: var(--paper);
  line-height: 1.7;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-sm);
}
.hours-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(242,237,227,0.08);
  color: var(--steel-light);
}
.hours-table td:last-child {
  text-align: right;
  color: var(--paper);
  font-weight: 600;
}

.visit-note {
  font-size: 0.85rem;
  color: var(--steel-light);
  margin-top: var(--space-sm);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(242,237,227,0.1);
  aspect-ratio: 4/3;
  display: block;
  position: relative;
  background: var(--char) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><rect width="200" height="200" fill="%231c2426"/><path d="M0 100h200M100 0v200" stroke="%232c4a5e" stroke-width="1"/></svg>') center/60px;
}
.map-embed::after {
  content: "Open in Google Maps \2197";
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  pointer-events: none;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(242,237,227,0.08);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
}
.footer-brand span { color: var(--amber); }

.footer-tagline {
  margin-top: 0.5rem;
  color: var(--steel-light);
  font-size: 0.9rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel-light);
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
}

.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a {
  text-decoration: none;
  color: var(--paper);
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--amber-light); }

.footer-bottom {
  border-top: 1px solid rgba(242,237,227,0.08);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--steel-light);
}
