:root {
  /* Route 66 palette */
  --blue: #acdee8;
  --pink: #b5869c; /* darker pink for headings */
  --charcoal: #1a1a1b;
  --silver: #a2a5a7;

  /* Layout tokens */
  --primary: var(--blue);
  --background: #fcfeff;
  --text-dark: var(--charcoal);
  --text-accent: var(--pink);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  --brand-h: 64px;
  --tabs-h: 56px;
  --tabs-gap: 8px;
  --tabs-offset-top: var(--brand-h); /* normal: tabs sit under brand bar */
  --anchor-offset: calc(var(--brand-h) + var(--tabs-h) + 28px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
html {
  scroll-behavior: smooth;
}
html.compact {
  --tabs-offset-top: 0px; /* tabs move up */
  --anchor-offset: calc(var(--tabs-h) + 28px); /* anchors compensate */
}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--background);
  color: var(--text-dark);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- BRAND BAR (auto-hide on scroll) ---------- */
.brand-bar {
  position: sticky;
  top: 0;
  z-index: 1100;
  height: var(--brand-h);
  background: #fff;
  border-bottom: 3px solid var(--pink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease;
}
.brand-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}
.brand-logo {
  height: 44px;
}
.brand-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 28px;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
  transition: filter 0.15s ease, transform 0.02s ease-in;
}
.btn:hover {
  filter: brightness(0.95);
}
.btn:active {
  transform: translateY(1px);
}

/* Three parallel stripes (stacked like =) */
.hamburger {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 2px solid var(--silver);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px; /* equal spacing between stripes */
  cursor: pointer;
  box-shadow: var(--shadow);
  padding: 0;
}

/* ensure no pseudo-lines from old styles */
.hamburger::before,
.hamburger::after {
  content: none !important;
}

.hamburger .bar {
  width: 22px; /* all bars same width */
  height: 2.5px; /* slim stripe */
  background: #333;
  border-radius: 2px;
  transition: background 0.15s ease;
}

.hamburger:hover .bar {
  background: #000;
}

/* Auto-hide state applied via JS */
.brand-bar.hide {
  transform: translateY(calc(-1 * var(--brand-h)));
}

/* ---------- SIDE DRAWER ---------- */
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: 290px;
  max-width: 86vw;
  background: #fff;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  z-index: 1500;
  display: flex;
  flex-direction: column;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}
.drawer-header img {
  height: 30px;
}
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--silver);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-close::before {
  content: "✕";
  font-size: 16px;
  line-height: 1;
  color: #333;
}
.drawer a {
  padding: 14px 18px;
  color: #222;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid #f3f3f3;
  display: block;
}
.drawer a:hover {
  background: #f9f9f9;
}

/* Scrim */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1400;
}
.scrim.show {
  opacity: 1;
  visibility: visible;
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 70px 0;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0;
  }
}
.hero h1 {
  font-family: "Pacifico", cursive;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--text-accent);
}
.hero p {
  margin: 18px 0 26px;
  max-width: 58ch;
  font-size: 1.075rem;
}
.hero .art {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* ---------- MENU ---------- */
.menu-section {
  text-align: center;
  padding: 40px 0 16px;
}

.menu-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.menu-title::before,
.menu-title::after {
  content: "";
  flex: 1 1 120px;
  height: 18px;
  background-image: url("images/check.png");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
  opacity: 0.9;
}
.menu-title span {
  font-family: "Pacifico", cursive;
  color: var(--text-accent);
  font-size: clamp(28px, 4vw, 40px);
  white-space: nowrap;
  padding: 0 0.25rem;
}

/* ---------- Horizontal scrollable menu ---------- */
.tabs-wrap {
  position: sticky;
  top: var(--tabs-offset-top); /* was: top: var(--brand-h) */
  transition: top 0.25s ease; /* smooth shift */
  z-index: 900;
  z-index: 900;
  background: linear-gradient(#ffffff, #ffffffcc);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid #eee;
  height: var(--tabs-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.tabs {
  display: inline-flex;
  align-items: center;
  gap: var(--tabs-gap);
  padding: 8px 12px;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.tabs::-webkit-scrollbar {
  height: 6px;
}
.tabs::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 999px;
}
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 2px solid var(--silver);
  background: #fff;
  color: #222;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  flex: 0 0 auto;
  transition: all 0.18s ease;
  box-shadow: var(--shadow);
}
.tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.tab.active {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}
.tabs-wrap::before,
.tabs-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  z-index: 1;
}
.tabs-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, #fff0 100%);
}
.tabs-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #fff 0%, #fff0 100%);
}

/* Group headers with anchor offset under sticky brand/tabs */
.menu-group {
  text-align: left;
  margin: 36px auto 12px;
  max-width: 1000px;
}
.menu-group h3 {
  font-family: "Pacifico", cursive;
  color: var(--text-accent);
  font-size: 32px;
  margin-bottom: 12px;
  scroll-margin-top: var(--anchor-offset);
}
.menu-group h3:target::before {
  content: "";
  display: block;
  height: var(--anchor-offset);
  margin-top: calc(-1 * var(--anchor-offset));
  visibility: hidden;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin: 0 auto 12px;
  max-width: 1000px;
}
.menu-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}
.menu-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.menu-card h4 {
  padding: 12px 0 4px;
  color: #333;
  font-size: 18px;
}
.menu-card p {
  padding: 0 14px 14px;
  font-size: 14px;
  color: #444;
}

/* ---------- FOOTER ---------- */
footer {
  background: #fff;
  margin-top: 56px;
  padding: 36px 0;
  text-align: center;
  border-top: 3px solid var(--silver);
}
footer a {
  color: var(--text-accent);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 700;
}
footer a:hover {
  text-decoration: underline;
}

drawer-nav a {
  padding: 14px 18px;
  color: #222;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid #f3f3f3;
  display: block;
}
.drawer-nav a:hover {
  background: #f9f9f9;
}

/* Social row */
.drawer-social {
  margin-top: auto; /* stick to bottom of drawer */
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  border-top: 1px solid #eee;
}
.drawer-social .social {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid var(--silver);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, border-color 0.12s ease,
    background 0.12s ease;
}
.drawer-social .social:hover {
  transform: translateY(-1px);
  border-color: var(--pink);
  background: #fff;
}
.drawer-social svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

/* --- Item Modal --- */
/* --- Item Modal (no image cropping) --- */
.no-scroll {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* toggled by .open */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.modal.open {
  display: flex;
}

.modal-dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  max-width: min(1000px, 96vw);
  max-height: 92vh; /* keep dialog within viewport */
  width: 100%;
  display: flex; /* let image + text stack */
  flex-direction: column;
  overflow: hidden;
  position: relative; /* for close button */
}

/* Modal image area without black letterboxing */
.modal-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background); /* or #fff */
  width: 100%;
  max-height: 70vh;
}

.modal-media {
  object-fit: contain; /* still no cropping */
  width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
  background: transparent; /* ensure image itself has no fill */
  border-radius: 8px; /* optional: soften edges */
}

.modal-body {
  padding: 16px 18px 18px;
  overflow: auto; /* text scrolls if long */
  max-height: calc(92vh - 16px); /* safety on tiny screens */
}

.modal-title {
  font-size: 20px;
  margin-bottom: 6px;
  color: #222;
}

.modal-desc {
  color: #444;
  font-size: 15px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--silver);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.modal-close:before {
  content: "✕";
  font-size: 18px;
  line-height: 1;
}
.modal-figure {
  background: #fff;
}

@media (max-width: 520px) {
  .modal-figure {
    max-height: 60vh;
  }
  .modal-media {
    max-height: 60vh;
  }
}

/* Social section layout */
.social-row {
  margin: 10px auto 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Reuse drawer social button style globally */
.social {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid var(--silver);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, border-color 0.12s ease,
    background 0.12s ease;
  text-decoration: none;
}

.social:hover {
  transform: translateY(-1px);
  border-color: var(--pink);
  background: #fff;
}

.social svg {
  width: 22px;
  height: 22px;
  fill: #333;
}

.social-tagline {
  margin-top: 8px;
  color: #555;
  font-size: 0.98rem;
}
/* Call button */
.call-btn {
  margin: 10px auto 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: filter 0.15s ease, transform 0.1s ease-in;
}

.call-btn:hover {
  filter: brightness(0.95);
}

.call-btn:active {
  transform: translateY(1px);
}

.call-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
/* Text-only cards (no image present) */
.menu-card.no-image {
  /* nothing fancy—just ensure spacing looks good */
}

.menu-card.no-image h4 {
  padding: 14px 14px 6px;
}

.menu-card.no-image p {
  padding: 0 14px 14px;
}

@media (max-width: 420px) {
  :root {
    --tabs-h: 60px;
  }
}
