/* Custom styles. Kept as plain CSS (not inside the Tailwind CDN block) so the CDN never has to recompile them. */
@font-face { font-family: 'Anton'; src: url('../fonts/anton-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Kalam'; src: url('../fonts/kalam-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --char: #0c0908; --coal: #17110e; --cream: #fff4dc;
  --fire: #e21c18; --fire-deep: #a80f12; --mustard: #f7c531;
  --ease: cubic-bezier(.2,.8,.2,1);
  --display: Anton, Impact, Haettenschweiler, sans-serif;
  --hand: Kalam, 'Comic Sans MS', cursive;
}

html { background: var(--char); -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; scroll-padding-top: 5rem; }
main, footer { overflow-x: clip; }
body { background: var(--char); color: var(--cream); font-family: Barlow, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--mustard); color: var(--char); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  border-radius: 2px; padding: 1rem 1.75rem;
  font-family: var(--display); font-size: 1.125rem; line-height: 1.75rem; text-transform: uppercase; letter-spacing: .05em;
  transition: transform .25s var(--ease), box-shadow .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }
.btn-fire { background: var(--fire); color: #fff; box-shadow: 0 6px 0 var(--fire-deep); }
.btn-fire:hover { box-shadow: 0 9px 0 var(--fire-deep), 0 16px 34px rgba(226,28,24,.45); }
.btn-fire:active { box-shadow: 0 2px 0 var(--fire-deep); }
.btn-mustard { background: var(--mustard); color: var(--char); box-shadow: 0 6px 0 #b98c0d; }
.btn-mustard:hover { box-shadow: 0 9px 0 #b98c0d, 0 16px 34px rgba(247,197,49,.35); }
.btn-mustard:active { box-shadow: 0 2px 0 #b98c0d; }
.btn-ghost { border: 2px solid rgba(255,244,220,.4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--mustard); color: var(--mustard); }
.btn-char { background: var(--char); color: var(--cream); box-shadow: 0 6px 0 rgba(0,0,0,.4); }
.btn-char:hover { box-shadow: 0 9px 0 rgba(0,0,0,.4), 0 16px 34px rgba(0,0,0,.35); }

/* Nav */
.nav-link { position: relative; padding: .5rem 0; font-family: var(--display); font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,244,220,.8); transition: color .2s; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mustard); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover, .nav-link[aria-current] { color: var(--mustard); }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }

#nav { transition: background-color .3s, box-shadow .3s; }
#nav[data-stuck] { background: rgba(12,9,8,.97); box-shadow: 0 1px 0 rgba(255,244,220,.09); }
.nav-logo { height: 4.5rem; transition: height .3s; }
#nav[data-stuck] .nav-logo { height: 3.25rem; }

.eyebrow { font-family: var(--hand); font-weight: 700; font-size: 1.25rem; color: var(--mustard); }
.section-title { font-family: var(--display); text-transform: uppercase; line-height: .98; font-size: clamp(3rem, 8vw, 6.5rem); }
@media (min-width: 768px) { .eyebrow { font-size: 1.5rem; } }

/* Menu cards */
.menu-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 6px; border: 1px solid rgba(255,244,220,.1); background: var(--coal);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.menu-card:hover { border-color: rgba(247,197,49,.55); box-shadow: 0 24px 50px -18px rgba(226,28,24,.6); }
.menu-card img { transition: transform .8s var(--ease); }
.menu-card:hover img { transform: scale(1.07); }

.price-tag {
  position: absolute; right: .5rem; top: .5rem; z-index: 10;
  border-radius: 2px; background: var(--mustard); padding: .125rem .625rem;
  font-family: var(--hand); font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--char);
  transform: rotate(-4deg); box-shadow: 0 5px 14px rgba(0,0,0,.45);
  transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
@media (min-width: 768px) { .price-tag { right: .75rem; top: .75rem; padding: .25rem .75rem; font-size: 1.5rem; } }
.menu-card:hover .price-tag { transform: rotate(3deg) scale(1.1); }

/* Sign board, coloured like the sign on the truck */
.sign-board { background: linear-gradient(180deg, #f6dd6a 0%, #f8c04a 34%, #f58b3f 68%, #ee4f3e 100%); color: #120c0a; }
.sign-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: .625rem 0; }
.sign-row .rule { position: relative; flex-shrink: 0; min-width: 6.5rem; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 1.5rem; line-height: 1.1; padding-bottom: .2rem; }
@media (min-width: 768px) { .sign-row .rule { font-size: 1.875rem; } }
.sign-row .rule::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.2rem; height: 4px; background: var(--char); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) var(--d, 0ms); }
[data-rules][data-in] .rule::after { transform: scaleX(1); }

/* Gallery */
.gallery-tile { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 6px; background: var(--coal); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery-tile:hover img, .gallery-tile:focus-visible img { transform: scale(1.06); }
.gallery-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; text-align: left; font-family: var(--display); font-size: 1.125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cream); background: linear-gradient(transparent, rgba(0,0,0,.82)); }
@media (min-width: 768px) { .gallery-tile .cap { font-size: 1.25rem; } }

/* Contact */
.contact-card { border-radius: 6px; background: var(--char); padding: 1.5rem; color: var(--cream); transition: transform .3s var(--ease); }
.contact-card:hover { transform: translateY(-5px) rotate(-.6deg); }
.tbc { margin-top: .5rem; display: inline-block; border-radius: 2px; background: rgba(247,197,49,.15); padding: .125rem .5rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--mustard); }

/* Scroll reveals (state is a data attribute, not a class, so the Tailwind CDN ignores it) */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .85s var(--ease) var(--d, 0ms), transform .85s var(--ease) var(--d, 0ms); }
.js [data-reveal='left'] { transform: translateX(-46px); }
.js [data-reveal='right'] { transform: translateX(46px); }
.js [data-reveal='pop'] { transform: scale(.82) rotate(-5deg); }
.js [data-reveal][data-in] { opacity: 1; transform: none; }
.js .menu-card[data-reveal][data-in] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .menu-card[data-tilt-ready] { transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }

/* Hero headline, line by line from behind a mask */
.line-mask { display: block; overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.line-mask > span { display: block; }
.js .line-mask > span { transform: translateY(112%); animation: line-up 1s cubic-bezier(.16,1,.3,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes line-up { to { transform: none; } }
.js .hero-fade { opacity: 0; animation: fade-up .9s ease forwards; animation-delay: var(--d, 0ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero-burger-in { animation: burger-in 1.3s cubic-bezier(.16,1,.3,1) both .15s; }
@keyframes burger-in { from { opacity: 0; transform: translateY(60px) scale(.9); } to { opacity: 1; transform: none; } }
.burger-float { animation: burger-float 6s ease-in-out infinite; will-change: transform; }
@keyframes burger-float { 50% { transform: translateY(-14px); } }

/* Glow pulses opacity only, which the GPU handles without repainting */
.hero-glow { background: radial-gradient(closest-side, rgba(250,70,20,.5), rgba(226,28,24,.16) 55%, transparent 76%); animation: glow 4.5s ease-in-out infinite; will-change: opacity; }
@keyframes glow { 50% { opacity: .65; } }

.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Flames: three separate layers, each moved with a composited transform */
.flame-edge svg { position: absolute; left: -2%; bottom: -2px; width: 104%; height: 100%; transform-origin: 50% 100%; will-change: transform; animation: flicker 2.6s ease-in-out infinite; }
.flame-edge svg:nth-child(2) { animation-duration: 1.9s; animation-delay: -.6s; }
.flame-edge svg:nth-child(3) { animation-duration: 3.2s; animation-delay: -1.2s; }
@keyframes flicker { 50% { transform: translateX(.6%) scaleY(.86); } }

.badge-spin { animation: spin 22s linear infinite; will-change: transform; }
@keyframes spin { to { transform: rotate(360deg); } }

#progress { transform: scaleX(var(--p, 0)); transform-origin: left; will-change: transform; }

/* Overlays */
#mobile-menu { transition: opacity .3s, visibility .3s; }
#mobile-menu:not([data-open]) { opacity: 0; visibility: hidden; }
#mobile-menu a { transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .4s; transition-delay: calc(var(--i) * 55ms); }
#mobile-menu:not([data-open]) a { opacity: 0; transform: translateY(24px); }

#callbar { background: rgba(12,9,8,.94); transition: transform .4s var(--ease); }
#callbar:not([data-on]) { transform: translateY(110%); }

#lightbox { transition: opacity .3s, visibility .3s; }
#lightbox:not([data-open]) { opacity: 0; visibility: hidden; }
#lightbox img { transition: transform .4s var(--ease); }
#lightbox:not([data-open]) img { transform: scale(.94); }

#toast { transform: translateX(-50%); transition: transform .35s var(--ease), opacity .3s; }
#toast:not([data-on]) { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }

/* Animations stop while their section is off screen */
[data-offscreen] .burger-float, [data-offscreen] .hero-glow, [data-offscreen] .flame-edge svg,
[data-offscreen] .marquee-track, [data-offscreen] .badge-spin { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js .line-mask > span, .js .hero-fade { opacity: 1; transform: none; }
  html:not(.lenis) { scroll-behavior: auto; }
}

/* ---------- Hero sizing: scales with both width and height ---------- */
.hero-title { line-height: 1.02; font-size: clamp(2.5rem, 13vw, 4.75rem); }
.hero-lede { font-size: 1.0625rem; line-height: 1.6; }
.hero-burger-size { width: min(86%, 46svh, 34rem); }
.hero-tag { left: 2%; bottom: 4%; }
@media (min-width: 768px) {
  /* Height-limited too, so short laptop screens (e.g. 1280x700) keep the buttons above the fold */
  .hero-title { font-size: clamp(3.25rem, min(7.4vw, 11.2svh), 8rem); }
  .hero-lede { font-size: clamp(1.0625rem, 2.3svh, 1.25rem); }
  .hero-burger-size { width: min(112%, 78svh); transform: translateX(-6%); }
  .hero-tag { left: -10%; bottom: 8%; }
}
@media (min-width: 768px) and (max-height: 760px) {
  .hero-ctas { margin-top: 1.25rem; }
  .eyebrow { font-size: 1.25rem; }
}
/* Very small phones */
@media (max-width: 379px) {
  .btn { padding: .875rem 1.25rem; font-size: 1rem; }
  .section-title { font-size: 2.6rem; }
  .sign-row .rule { min-width: 5rem; font-size: 1.35rem; }
  .price-tag { font-size: 1.125rem; }
}
