/* Charlie's Burger public site. Colors are estimated from the Facebook screenshot, not sampled from a logo file.
   Mobile first, 16px side gutters. Text wordmark until the client sends a logo.
   Every animation is off under prefers-reduced-motion. */
:root {
  --red: #D92D20;
  --red-dark: #B42318;
  --amber: #F7A823;
  --yellow: #FFCF28;
  --ink: #2B1A12;
  --cream: #FFF6E8;
  --paper: #FFFFFF;
  --line: #EADFCF;
  --muted: #6B5B4E;
  --shadow: 0 10px 30px -12px rgba(43, 26, 18, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 12px; }
h1 { font-size: clamp(2.6rem, 11vw, 5rem); font-weight: 900; letter-spacing: -0.03em; color: var(--red); }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; }
h3 { font-size: 1.08rem; }
a { color: var(--red-dark); }
p { margin: 0 0 12px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 60; padding: 8px 12px; background: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.fine { font-size: 0.85rem; margin-top: 14px; }
.strong { font-weight: 700; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 50; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--amber), var(--red)); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 246, 232, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(43, 26, 18, 0.5); background: rgba(255, 255, 255, 0.9); }
.head-inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: padding 0.3s var(--ease); }
.site-head.scrolled .head-inner { padding-top: 8px; padding-bottom: 8px; }
.wordmark {
  font-weight: 900; font-size: 1.5rem; letter-spacing: -0.02em; text-decoration: none; font-style: italic;
  color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--red);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--red);
  transition: transform 0.3s var(--ease);
}
.wordmark:hover { transform: rotate(-3deg) scale(1.05); }

.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ink); cursor: pointer; }
.bars { display: grid; gap: 5px; }
.bars i { display: block; width: 20px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 16px; right: 16px; top: calc(100% + 8px);
  display: grid; gap: 4px; padding: 10px;
  background: var(--paper); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none; visibility: hidden;
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.3s;
}
.site-nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.site-nav a:hover { background: var(--cream); }
.site-nav a.active { color: var(--red); }
.nav-cta { background: var(--red); color: #fff !important; text-align: center; }
.nav-cta:hover { background: var(--red-dark) !important; }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px 48px; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.light { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn.light:hover { background: var(--cream); color: var(--ink); box-shadow: 4px 4px 0 var(--amber); }
.btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}
.btn:hover::after { transition: transform 0.7s var(--ease); transform: translateX(120%) skewX(-20deg); }
.arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 36px 0 40px; }
.hero-blobs { position: absolute; top: -80px; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);z-index: -1; overflow: hidden; pointer-events: none; }
.hero-blobs span { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.55; animation: drift 14s ease-in-out infinite alternate; }
.hero-blobs span:nth-child(1) { width: 280px; height: 280px; background: var(--yellow); top: -40px; right: -60px; }
.hero-blobs span:nth-child(2) { width: 220px; height: 220px; background: #FFB199; bottom: 0; left: -80px; animation-delay: -5s; }
.hero-blobs span:nth-child(3) { width: 160px; height: 160px; background: var(--amber); top: 40%; right: 30%; opacity: 0.3; animation-delay: -9s; }
.hero-inner { position: relative; display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 6px 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-dark); background: rgba(217, 45, 32, 0.08); border-radius: 999px; }
.tagline { font-size: clamp(1.15rem, 3.6vw, 1.4rem); margin: 0 0 16px; max-width: 34ch; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 12px; border-radius: 999px; background: var(--paper); font-weight: 700; font-size: 0.92rem; box-shadow: var(--shadow); }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #9AA0A6; }
.status.open .dot { background: #16A34A; animation: ping 1.8s ease-out infinite; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; min-height: 280px; display: grid; place-items: center; }
.stack { position: relative; width: 190px; height: 190px; }
.stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border: 6px solid var(--paper); border-radius: 18px; box-shadow: var(--shadow);
  opacity: 0; animation: deal 0.9s var(--ease) forwards;
}
.stack img:nth-child(1) { --r: -12deg; --x: -58px; --y: 8px; animation-delay: 0.3s; }
.stack img:nth-child(2) { --r: 10deg; --x: 58px; --y: 14px; animation-delay: 0.45s; }
.stack img:nth-child(3) { --r: -2deg; --x: 0px; --y: -10px; animation-delay: 0.6s; }
.stack:empty { border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--yellow), var(--amber) 55%, var(--red) 100%); animation: bob 4s ease-in-out infinite; }
.sticker {
  position: absolute; z-index: 2; padding: 8px 12px; border-radius: 12px; font-weight: 800; font-size: 0.85rem;
  background: var(--ink); color: var(--yellow); box-shadow: var(--shadow); white-space: nowrap;
  animation: bob 4s ease-in-out infinite;
}
.sticker.s1 { top: 4%; left: 0; rotate: -6deg; }
.sticker.s2 { bottom: 12%; right: 0; rotate: 5deg; background: var(--yellow); color: var(--ink); animation-delay: -1.3s; }
.sticker.s3 { bottom: 0; left: 6%; rotate: -3deg; background: var(--red); color: #fff; animation-delay: -2.6s; }

.anim-in { opacity: 0; animation: rise 0.8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }

/* ---------- ticker ---------- */
.ticker {
  margin: 0 calc(50% - 50vw); padding: 14px 0; overflow: hidden;
  background: var(--red); color: var(--cream); transform: rotate(-1.2deg);
  font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.95rem;
}
.ticker-track { display: flex; gap: 22px; width: max-content; animation: marquee 30s linear infinite; }
.ticker-track span { white-space: nowrap; }
.ticker-track span:nth-child(even) { color: var(--yellow); }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- features ---------- */
.features { display: grid; gap: 14px; padding: 48px 0 16px; }
.feature { padding: 22px; background: var(--paper); border-radius: 20px; border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s, opacity 0.7s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; font-size: 1.6rem; border-radius: 16px; background: var(--cream); transition: transform 0.4s var(--ease); }
.feature:hover .icon { transform: rotate(-10deg) scale(1.12); }
.feature p { margin: 0; }

/* ---------- sections ---------- */
.block { padding: 48px 0; }
.section-head { margin-bottom: 18px; }
.kicker { margin: 0 0 4px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-dark); }
.section-head h2 { position: relative; display: inline-block; z-index: 0; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 10px; width: 100%;
  background: var(--yellow); border-radius: 6px; z-index: -1;
  transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease) 0.25s;
}
.section-head.in h2::after { transform: scaleX(1); }

/* ---------- menu ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.tab {
  flex: 0 0 auto; min-height: 44px; padding: 8px 16px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s;
}
.tab:hover { transform: translateY(-1px); }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.menu-body { display: grid; gap: 14px; }
.item {
  position: relative; display: grid; gap: 6px; align-content: start; padding: 18px 18px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  animation: pop 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.item::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--red); transform: scaleY(0); transition: transform 0.35s var(--ease); }
.item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.item:hover::before { transform: scaleY(1); }
.item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.item-head h3 { margin: 0; }
.price { font-weight: 900; font-size: 1.1rem; color: var(--red); white-space: nowrap; }
.item p { margin: 0; }
.addons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--cream); border: 1px dashed var(--amber); font-size: 0.82rem; font-weight: 700; }

/* ---------- about ---------- */
.about-card {
  position: relative; overflow: hidden; padding: 32px 24px; border-radius: 28px;
  background: var(--ink); color: var(--cream);
}
.about-card::after { content: "🍔"; position: absolute; right: -10px; bottom: -24px; font-size: 140px; opacity: 0.12; rotate: -15deg; animation: bob 6s ease-in-out infinite; }
.about-card .kicker { color: var(--amber); }
.about-card h2 { color: var(--yellow); }
.lead { position: relative; font-size: clamp(1.15rem, 3.4vw, 1.45rem); max-width: 40ch; margin: 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 16px; background: var(--line); aspect-ratio: 1 / 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.6s; }
.gallery figure:hover img { transform: scale(1.08) rotate(1deg); filter: saturate(1.2); }
.js .gallery figure.reveal { transition-delay: calc(var(--i, 0) * 40ms); }
.more { margin: 18px auto 0; display: flex; }

/* ---------- visit ---------- */
.visit-grid { display: grid; gap: 18px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 12px 16px; margin: 0; padding: 22px; background: var(--paper); border-radius: 20px; border: 1px solid var(--line); align-content: start; }
.facts dt { font-weight: 800; color: var(--red-dark); }
.facts dd { margin: 0; }
.map { width: 100%; height: 300px; border: 0; border-radius: 20px; background: var(--line); box-shadow: var(--shadow); }

/* ---------- contact ---------- */
.contact-band {
  position: relative; overflow: hidden; margin: 24px 0 0; padding: 40px 24px; border-radius: 28px; text-align: center;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: var(--cream);
}
.contact-band::before { content: ""; position: absolute; inset: -50%; background: radial-gradient(circle closest-side at 35% 35%, rgba(255, 207, 40, 0.35), transparent); animation: spin 18s linear infinite; }
.contact-band > * { position: relative; }
.contact-band h2 { color: var(--yellow); font-size: clamp(2rem, 7vw, 3rem); }
.contact { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact-band .btn.primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* ---------- footer, back to top ---------- */
.site-foot { padding: 32px 16px 40px; background: var(--ink); color: var(--cream); text-align: center; }
.site-foot p { margin: 4px 0; }
.site-foot .muted { color: #E7D8C4; }
.foot-mark { font-size: 1.6rem; font-weight: 900; font-style: italic; color: var(--yellow); }
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; text-decoration: none; font-size: 1.3rem; font-weight: 900; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px) scale(0.8); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* ---------- scroll reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes deal {
  from { opacity: 0; transform: translate(0, 40px) rotate(0deg) scale(0.8); }
  to { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(30px, 20px) scale(1.15); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .menu-body { grid-template-columns: repeat(2, 1fr); }
  .map { height: 100%; min-height: 320px; }
  .about-card { padding: 48px 40px; }
}
@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; align-items: center; gap: 4px; padding: 0;
    background: none; box-shadow: none; opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  }
  .site-nav a { position: relative; padding: 8px 12px; }
  .site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform 0.3s var(--ease); }
  .site-nav a:not(.nav-cta):hover, .site-nav a.active:not(.nav-cta) { background: none; }
  .site-nav a:not(.nav-cta):hover::after, .site-nav a.active:not(.nav-cta)::after { transform: scaleX(1); }
  .nav-cta { border-radius: 999px; padding: 8px 18px !important; margin-left: 8px; }
  .hero { padding: 64px 0 72px; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; }
  .hero-art { min-height: 380px; }
  .stack { width: 230px; height: 230px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .visit-grid { grid-template-columns: 1fr 1.3fr; }
  .menu-body { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim-in, .js .reveal, .item { opacity: 1 !important; transform: none !important; }
  .stack img { opacity: 1 !important; transform: translate(var(--x), var(--y)) rotate(var(--r)) !important; }
}

/* Item photo on the public menu (uploaded in the POS). */
.item-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 6px; background: var(--line); }
