/* khanacasa.com: truck-art palette from lib/app/theme.dart
   Layout: sticky white header with the moving truck-art stripe, content in a
   1180px column, maroon/teal/mustard blocks, dark-maroon footer.
   Motion is CSS only; site.js-style helpers are inlined at the end of each page.
   Everything is visible without JavaScript, and all motion stops when the
   visitor's device asks for reduced motion. */
:root {
  --ivory: #F3EAD9;
  --paper: #FBF6EC;
  --white: #FFFFFF;
  --ink: #2B1B12;
  --ink-soft: #4A3A30;
  --muted: #6A5A4E;
  --line: #EFE4CC;
  --maroon: #8C2F2F;
  --maroon-dark: #6E2222;
  --mustard: #C98F1D;
  --mustard-dark: #7A560F;
  --teal: #1B7A7A;
  --teal-dark: #145E5E;
  --teal-soft: #CFEAE6;
  --mustard-soft: #F6E3BE;
  --rose-soft: #F6DCD3;
  --display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--maroon); }
a:hover { color: var(--maroon-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
header.site.scrolled { box-shadow: 0 6px 24px rgba(43, 27, 10, .08); }
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  transition: padding .3s ease;
}
header.site.scrolled .bar { padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--maroon); letter-spacing: -0.02em; }
header.site nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 600; }
header.site nav a.link { color: var(--ink); text-decoration: none; position: relative; padding: 6px 0; }
header.site nav a.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--mustard); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
header.site nav a.link:hover::after, header.site nav a.link[aria-current="page"]::after { transform: scaleX(1); }
header.site nav a.link[aria-current="page"] { color: var(--maroon); }
@media (max-width: 640px) {
  header.site .bar { gap: 8px; }
  header.site nav { width: 100%; justify-content: space-between; gap: 4px 14px; font-size: 14px; }
  header.site nav .btn { padding: 0 16px; min-height: 40px; }
}

.stripe {
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--mustard) 0 28px, var(--teal) 28px 56px, var(--maroon) 56px 84px);
  animation: kc-stripe 6s linear infinite;
}
@keyframes kc-stripe { to { background-position: 168px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(110, 34, 34, .2); }
.btn .arr { display: inline-block; transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn.primary, .btn.primary:hover { background: var(--maroon); color: var(--white); }
.btn.ghost, .btn.ghost:hover { background: var(--white); color: var(--teal-dark); border: 2px solid var(--teal); }
.btn.teal, .btn.teal:hover { background: var(--teal); color: var(--white); }
.btn.sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Shared type ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); }
.h-display {
  margin: 0; font-family: var(--display); font-weight: 800; color: var(--maroon);
  letter-spacing: -0.03em; line-height: 1.04; font-size: clamp(32px, 5vw, 48px);
}
.lead { margin: 0; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--ink-soft); max-width: 36em; }
.note { color: var(--muted); font-size: 0.92rem; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }

/* ---------- Status badge (open / closed) ---------- */
.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: 15px; font-weight: 600; color: var(--ink);
}
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--maroon); flex: none; }
.status.open .dot { background: var(--teal); animation: kc-pulse 1.8s infinite; }
@keyframes kc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(27, 122, 122, .55); }
  70% { box-shadow: 0 0 0 12px rgba(27, 122, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 122, 122, 0); }
}

/* ---------- Home: hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 80px; }
.hero-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 800; color: var(--maroon);
  font-size: clamp(42px, 7vw, 72px); line-height: .98; letter-spacing: -0.035em;
}
.ul { position: relative; display: inline-block; z-index: 0; }
.ul::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .04em; height: .16em;
  background: var(--mustard); border-radius: 4px; z-index: -1; transform-origin: left;
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { flex: 1 1 360px; min-width: 0; max-width: 100%; position: relative; height: 440px; }
.hero-art .back { position: absolute; inset: 30px 10px 20px 40px; background: var(--mustard-soft); border-radius: 40px; transform: rotate(4deg); }
.hero-art .plate-card {
  position: absolute; inset: 40px 30px 30px 30px; background: var(--maroon); border-radius: 36px;
  display: grid; place-items: center; overflow: hidden;
}
.hero-art .plate-card svg.plate { width: 78%; max-width: 300px; height: auto; }
.steam { position: absolute; top: 34px; left: 50%; margin-left: -40px; }
.steam path { animation: kc-steam 2.6s ease-out infinite; }
.steam path:nth-child(2) { animation-delay: .9s; }
.steam path:nth-child(3) { animation-delay: 1.7s; }
@keyframes kc-steam { 0% { transform: translateY(8px); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-26px); opacity: 0; } }
.chip {
  position: absolute; border-radius: 18px; padding: 12px 16px;
  box-shadow: 0 14px 34px rgba(43, 27, 10, .16); display: flex; gap: 12px; align-items: center;
}
.chip.rider { left: 0; bottom: 6px; background: var(--white); animation: kc-float 6s ease-in-out infinite; }
.chip.pay { right: 0; top: 8px; background: var(--white); flex-direction: column; align-items: flex-start; gap: 2px; animation: kc-float2 7s ease-in-out infinite; }
.chip .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; flex: none; }
.chip b { font-size: 14px; }
.chip small { font-size: 13px; color: var(--muted); }
@keyframes kc-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(-2deg); } }
@keyframes kc-float2 { 0%, 100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(10px) rotate(3deg); } }
.bob { animation: kc-bob 1.6s ease-in-out infinite; }
@keyframes kc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 560px) {
  .hero { padding-top: 40px; gap: 32px; }
  .hero-art { height: 360px; }
}

/* Page-load sequence (the .go class is added by the page script) */
.go .seq { animation: kc-up .8s cubic-bezier(.2, .7, .2, 1) backwards; }
.go .seq-1 { animation-delay: .1s; }
.go .seq-2 { animation-delay: .25s; }
.go .seq-3 { animation-delay: .4s; }
.go .seq-4 { animation-delay: .55s; }
.go .ul::after { animation: kc-draw .9s .75s cubic-bezier(.6, 0, .2, 1) backwards; }
@keyframes kc-up { from { opacity: 0; transform: translateY(28px); } }
@keyframes kc-draw { from { transform: scaleX(0); } }

/* Scroll reveal: content rests visible; .play replays the entrance on arrival */
.reveal.play { animation: kc-up .8s cubic-bezier(.2, .7, .2, 1) backwards; }
.reveal.play.d1 { animation-delay: .12s; }
.reveal.play.d2 { animation-delay: .24s; }
.reveal.play.d3 { animation-delay: .36s; }

/* ---------- Home: marquee ---------- */
.marquee {
  background: var(--maroon); color: var(--mustard-soft); overflow: hidden;
  padding-top: 18px; padding-bottom: 18px; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: clamp(20px, 3vw, 26px);
}
.marquee .track { display: flex; width: max-content; animation: kc-marquee 30s linear infinite; }
.marquee .track span { padding-right: 44px; }
.marquee .track .star { color: var(--mustard); }
@keyframes kc-marquee { to { transform: translateX(-50%); } }

/* ---------- Home: steps ---------- */
.steps-row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.connector {
  position: absolute; left: 64px; right: 64px; top: 60px; height: 3px; transform-origin: left;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 14px, transparent 14px 24px);
}
.connector.play { animation: kc-draw 1.2s .2s cubic-bezier(.6, 0, .2, 1) backwards; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 28px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(43, 27, 10, .12); }
.card h3 { margin: 0; font-size: 24px; }
.card p { margin: 0; color: var(--ink-soft); }
.step-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; }
.step-n { font-size: 14px; font-weight: 700; }
@media (max-width: 820px) {
  .steps-row { grid-template-columns: minmax(0, 1fr); }
  .connector { display: none; }
}

/* ---------- Home: kitchens and riders ---------- */
.big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 88px; }
.bigcard {
  border-radius: 32px; padding: 40px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bigcard:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(43, 27, 10, .16); }
.bigcard .num {
  font-family: var(--display); font-weight: 800; line-height: .9; letter-spacing: -0.04em;
  font-size: clamp(80px, 12vw, 120px); font-variant-numeric: tabular-nums;
}
.bigcard .claim { font-size: 20px; font-weight: 700; line-height: 1.35; }
.bigcard p { margin: 0; }
.bigcard .btn { align-self: flex-start; margin-top: 6px; }
.bigcard.k { background: var(--maroon); color: var(--white); }
.bigcard.k .eyebrow, .bigcard.k .num { color: var(--mustard-soft); }
.bigcard.k p { color: #F5E4E4; }
.bigcard.k .btn { background: var(--mustard-soft); color: var(--maroon-dark); }
.bigcard.r { background: var(--teal); color: var(--white); }
.bigcard.r .eyebrow, .bigcard.r .num { color: var(--teal-soft); }
.bigcard.r p { color: #E6F4F2; }
.bigcard.r .btn { background: var(--teal-soft); color: #0F4A4A; }
@media (max-width: 820px) {
  .big { grid-template-columns: minmax(0, 1fr); }
  .bigcard { padding: 28px; }
}

/* ---------- Opening hours band (home and contact) ---------- */
.hours-band { background: var(--mustard-soft); }
.hours-band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.hours-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hours-copy p { margin: 0; color: var(--ink-soft); }
.week { flex: 999 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.day { border-radius: 16px; padding: 14px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: rgba(255, 255, 255, .6); color: var(--muted); }
.day b { font-size: 15px; color: var(--ink); }
.day span { font-size: 12px; font-weight: 600; }
.day em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; min-height: 1.2em; }
.day.on { background: var(--maroon); color: var(--mustard-soft); }
.day.on b { color: var(--white); }
.day.today { outline: 3px solid var(--teal); outline-offset: 3px; }
.week.play .day { animation: kc-up .5s cubic-bezier(.2, .7, .2, 1) backwards; }
.week.play .day:nth-child(2) { animation-delay: .05s; }
.week.play .day:nth-child(3) { animation-delay: .1s; }
.week.play .day:nth-child(4) { animation-delay: .15s; }
.week.play .day:nth-child(5) { animation-delay: .2s; }
.week.play .day:nth-child(6) { animation-delay: .25s; }
.week.play .day:nth-child(7) { animation-delay: .3s; }

/* ---------- Policy cards (home) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.pcard {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 24px;
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(43, 27, 10, .1); border-color: var(--mustard); color: var(--ink); }
.pcard strong { font-size: 19px; color: var(--maroon); }
.pcard span { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Inner pages (policies, contact) ---------- */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 {
  margin: 0; font-family: var(--display); font-weight: 800; color: var(--maroon);
  font-size: clamp(36px, 6vw, 56px); line-height: 1.02; letter-spacing: -0.03em;
}
.meta { color: var(--muted); font-size: 0.92rem; margin: 0; }

.doc { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; padding-top: 48px; padding-bottom: 88px; }
.toc {
  flex: 1 1 220px; min-width: 0; position: sticky; top: 96px;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  display: flex; flex-direction: column; gap: 6px; font-size: 14px;
}
.toc strong { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 4px; }
.toc a { color: var(--ink-soft); text-decoration: none; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--maroon); border-left-color: var(--mustard); }
.toc a.active { color: var(--maroon); border-left-color: var(--maroon); font-weight: 600; }
@media (max-width: 900px) { .toc { position: static; } }

.prose { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.prose > p:first-child { margin-top: 0; }
.prose h2 {
  font-family: var(--display); font-weight: 700; color: var(--maroon); font-size: 26px;
  letter-spacing: -0.02em; margin: 44px 0 10px; scroll-margin-top: 96px;
}
.prose p, .prose li { color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }

.panel { border-radius: 20px; padding: 20px 24px; margin: 18px 0; }
.panel p:first-child { margin-top: 0; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel.gold { background: var(--mustard-soft); }
.panel.mint { background: var(--teal-soft); }
.panel.rose { background: var(--rose-soft); }
.panel.cream { background: var(--white); border: 1px solid var(--line); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 22px 0 6px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.fact b { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--maroon); letter-spacing: -0.02em; }
.fact span { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }

.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 16px 0; padding: 0; list-style: none; }
.timeline li { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 0; }
.timeline li b { display: block; color: var(--teal-dark); font-size: 15px; margin-bottom: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ccard {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ccard:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(43, 27, 10, .1); }
.ccard .label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); }
.ccard .value { font-size: 20px; font-weight: 700; color: var(--ink); word-break: break-word; }
.ccard .value a { color: var(--ink); text-decoration: none; }
.ccard .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.copy {
  font: inherit; font-size: 14px; font-weight: 700; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); cursor: pointer;
}
.copy:hover { border-color: var(--mustard); }
.business dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.business dt { font-weight: 700; color: var(--muted); }
.business dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) {
  .business dl { grid-template-columns: 1fr; gap: 2px; }
  .business dd { margin-bottom: 10px; }
}

/* ---------- Footer ---------- */
footer.site { background: var(--maroon-dark); color: #F5E9E9; }
footer.site .foot { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 52px; padding-bottom: 36px; }
footer.site .foot-a { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
footer.site .foot-a .name { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--white); }
footer.site .foot-b { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
footer.site .foot-b strong { color: var(--mustard-soft); }
footer.site a { color: var(--white); }
footer.site a:hover { color: var(--mustard-soft); }
footer.site .copyright { border-top: 1px solid #8C3A3A; text-align: center; padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: #E8CFCF; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
