/* Kitchen Khurana — base tokens, type, nav, buttons, footer */

:root {
  --cream: #FFF9F0;
  --cream-deep: #F7EEDF;
  --ink: #231A10;
  --ink-soft: rgba(35, 26, 16, 0.62);
  --ink-faint: rgba(35, 26, 16, 0.38);
  --terra: #C8401A;
  --terra-deep: #A33212;
  --amber: #E8A020;
  --green: #2D5A27;
  --line: rgba(35, 26, 16, 0.14);
  --card: #FFFFFF;
  --font-display: "Prata", "Marcellus", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-hindi: "Tiro Devanagari Hindi", serif;
  --radius: 20px;
  --shadow-soft: 0 2px 6px rgba(35, 26, 16, 0.05), 0 18px 44px -18px rgba(35, 26, 16, 0.18);
  --nav-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { width: 100%; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--amber); color: var(--ink); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--terra);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  margin-top: 18px;
  text-wrap: balance;
}
.section-sub {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 17px;
  text-wrap: pretty;
}
.hindi { font-family: var(--font-hindi); font-weight: 400; }

/* ---------- Layout ---------- */
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
section { position: relative; }
.section-pad { padding: clamp(72px, 9vw, 130px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--terra);
  color: #FFF6EC;
  box-shadow: 0 14px 30px -12px rgba(200, 64, 26, 0.55);
}
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-2px); }
.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-small { padding: 10px 18px; font-size: 13.5px; }

/* ---------- Veg / non-veg dot ---------- */
.diet-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--green);
  display: inline-grid;
  place-items: center;
  flex: none;
}
.diet-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.diet-dot.nonveg { border-color: var(--terra); }
.diet-dot.nonveg::after { background: var(--terra); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(255, 249, 240, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.nav-logo { display: flex; flex-direction: column; line-height: 1; }
.nav-logo .logo-main { font-family: var(--font-display); font-size: 21px; letter-spacing: 0.02em; }
.nav-logo .logo-sub { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--terra); margin-top: 4px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); position: relative; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 100%;
  background: var(--terra); transform: scaleX(0); transform-origin: right; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-weight: 600; font-size: 14px;
  transition: transform 0.25s, background 0.25s;
}
.cart-btn:hover { transform: translateY(-2px); background: #3A2C1B; }
.cart-count {
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--amber); color: var(--ink);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  transition: transform 0.2s;
}
.cart-count.pop { animation: kk-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes kk-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 48px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a small { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.2em; color: var(--terra); }
body.menu-open { overflow: hidden; }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Image fallback ---------- */
[data-img] { background: var(--cream-deep); position: relative; overflow: hidden; }
[data-img].img-fallback::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 160, 32, 0.25), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(200, 64, 26, 0.18), transparent 55%),
    var(--cream-deep);
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 249, 240, 0.75); }
.footer .footer-cta { padding: clamp(80px, 10vw, 140px) 0 60px; text-align: center; }
.footer .footer-cta .hindi-line { font-family: var(--font-hindi); font-size: clamp(20px, 2.4vw, 28px); color: var(--amber); }
.footer .footer-cta h2 {
  font-family: var(--font-display); font-weight: 400; color: var(--cream);
  font-size: clamp(40px, 6.5vw, 88px); line-height: 1.05; margin: 18px auto 30px; max-width: 16ch; text-wrap: balance;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px;
  padding: 50px 0; border-top: 1px solid rgba(255, 249, 240, 0.14);
}
.footer-grid h4 { color: var(--cream); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid a:hover { color: var(--cream); }
.footer-logo { font-family: var(--font-display); font-size: 26px; color: var(--cream); }
.footer-note { font-size: 14px; max-width: 30ch; margin-top: 12px; line-height: 1.6; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 30px; border-top: 1px solid rgba(255, 249, 240, 0.14);
  font-size: 12.5px; color: rgba(255, 249, 240, 0.45);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  transform: translate(-50%, 80px);
  background: var(--ink); color: var(--cream);
  padding: 13px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
  box-shadow: 0 18px 40px -12px rgba(35, 26, 16, 0.5);
  max-width: calc(100vw - 40px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .diet-dot { width: 13px; height: 13px; }
.toast .diet-dot::after { width: 5px; height: 5px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
  .nav-cta .btn-order { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 40px); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
