:root {
  --red: #e10600;
  --red-deep: #9d120c;
  --ink: #1c110e;
  --muted: #6e5b54;
  --cream: #fff4ea;
  --paper: #fffdfb;
  --line: #f0ddd3;
  --gold: #f0b429;
  --green: #12824a;
  --wa: #1fa855;
  --shadow: 0 18px 40px rgba(70, 18, 8, 0.1);
  --header: 74px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Lilita One", "Arial Black", sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Noto Nastaliq Urdu Draft", serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: clip;
}
a, button { touch-action: manipulation; }
body.lock { overflow: hidden; }
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.topbar {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 8px 16px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(255, 244, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(60, 16, 8, 0.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--red);
  display: grid;
  place-items: center;
  flex: none;
}
.logo-name {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}
.logo-place {
  display: block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--red); }
.nav-toggle {
  display: none;
  border: 0;
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.cart-btn, .add, .btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
}
.cart-btn {
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.count {
  background: var(--gold);
  color: var(--ink);
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 99px;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
}
.count:empty { display: none; }

.hero { padding: 28px 0 10px; }
.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
.kicker {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.78rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 8px 0 12px;
  max-width: 11ch;
}
.urdu {
  font-family: var(--urdu);
  font-size: 1.35rem;
  line-height: 2;
  margin-bottom: 8px;
}
.lead { color: var(--muted); font-size: 1.05rem; max-width: 42ch; }
.hero-actions, .phone-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 18px;
  background: var(--red);
  color: #fff;
}
.btn.dark { background: var(--ink); }
.btn.ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn.wa { background: var(--wa); }
.phone-row a {
  text-decoration: none;
  background: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  min-width: 0;
  flex: 1 1 150px;
}
.phone-row small { display: block; color: var(--muted); font-weight: 700; font-size: 0.75rem; }
.phone-row strong { font-size: 1.05rem; }

.hero-visual { position: relative; }
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.float-card {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  width: min(280px, calc(100% - 28px));
  box-shadow: var(--shadow);
}
.float-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}
.float-card strong { display: block; }
.pill {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 99px;
  padding: 2px 8px;
  margin-bottom: 4px;
}

.section { padding: 56px 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 1;
}
.section-head { margin-bottom: 22px; max-width: 46rem; }
.section-head p { color: var(--muted); margin-top: 8px; }

.popular-grid, .deal-grid, .shop-grid, .contact-grid, .video-grid, .card-grid {
  display: grid;
  gap: 14px;
}
.food-card, .deal, .info-card, .panel {
  background: var(--paper);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.food-card { overflow: hidden; display: flex; flex-direction: column; }
.food-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.food-card img.contain { object-fit: contain; padding: 8px; }
.food-card > div, .deal { padding: 14px 16px 16px; }
.food-card h3 { font-size: 1.15rem; }
.food-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.price { font-weight: 800; color: var(--red); white-space: nowrap; }
.add {
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  min-height: 44px;
  min-width: 64px;
}
.add:hover, .btn:hover, .cart-btn:hover { filter: brightness(1.05); }

.deals { background: var(--ink); color: #fff; }
.deals .section-head p { color: #f0d2c6; }
.deal {
  position: relative;
  color: var(--ink);
  border: 3px solid var(--red);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.deal-tag {
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 10px;
}
.deal ul { margin: 12px 0; padding-left: 18px; flex: 1; }
.deal li { margin: 4px 0; }
.deal-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.deal-foot strong { font-size: 1.35rem; color: var(--red); }
.ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 4px 8px;
}

.menu-tools { display: grid; gap: 12px; margin-bottom: 18px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.filters button, .search {
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
  white-space: nowrap;
}
.filters button.is-on { background: var(--red); color: #fff; box-shadow: none; }
.search { border-radius: 16px; }
.menu-group { margin-top: 22px; }
.group-title {
  background: var(--red);
  color: #fff;
  display: inline-block;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 1.15rem;
}
.group-note { color: var(--muted); margin: 8px 0 4px; font-size: 0.92rem; }
.item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 2px;
  border-bottom: 1px dashed #e7cfc4;
  min-width: 0;
}
.item-pizza { align-items: flex-start; flex-direction: column; }
.item-name { font-size: 1.05rem; flex: 1 1 160px; min-width: 0; }
.item-buy { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--red);
  background: #fff;
  color: var(--red);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 40px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip b { font-weight: 800; }
.chip:hover { background: var(--red); color: #fff; }
.menu-empty { text-align: center; color: var(--muted); padding: 20px; }
.sheet-grid { margin-top: 28px; }
.sheet {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  text-align: left;
}
.sheet img { width: 100%; height: auto; }
.sheet span { display: block; font-weight: 800; padding: 10px 12px 12px; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.shot {
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background: #fff;
}
.shot img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.shot.contain img { object-fit: contain; padding: 8px; }

.shop-copy p { color: var(--muted); margin-top: 10px; }
.video-grid video {
  width: 100%;
  border-radius: 18px;
  background: #111;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.contact-grid .panel { padding: 18px; }
.address { font-size: 1.15rem; font-weight: 700; margin: 8px 0 14px; }
.contact-links { display: grid; gap: 8px; }
.contact-links a {
  text-decoration: none;
  font-weight: 800;
  background: var(--cream);
  border-radius: 12px;
  padding: 10px 12px;
}
.map {
  min-height: 280px;
  border: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
}

.site-footer {
  background: var(--ink);
  color: #f6e7df;
  padding: 28px 0 calc(118px + env(safe-area-inset-bottom, 0px));
}
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

.mobile-bar {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  background: #fff;
  padding: 8px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(40, 10, 6, 0.2);
}
.mobile-bar a, .mobile-bar button {
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 6px;
  min-height: 44px;
  font-weight: 800;
  background: var(--cream);
  cursor: pointer;
}
.mobile-bar .wa { background: var(--wa); color: #fff; }

.cart[hidden] { display: none; }
.cart { position: fixed; inset: 0; z-index: 40; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(20, 8, 6, 0.55); }
.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh;
  width: min(420px, 100%);
  background: var(--paper);
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-top, .deal-foot, .cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cart-top h2 { font-family: var(--display); font-size: 2rem; }
.icon-btn, .text-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}
.cart-empty { color: var(--muted); }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cart-name { font-weight: 800; }
.cart-line { color: var(--red); font-weight: 700; }
.remove { grid-column: 1; justify-self: start; color: var(--muted); font-size: 0.85rem; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 0;
  background: var(--cream);
  cursor: pointer;
  font-weight: 800;
}
.order-form { display: grid; gap: 8px; }
.order-form input, .order-form textarea, .order-form select, .search {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
}
.order-error { color: var(--red-deep); font-weight: 700; }
.total-line { display: flex; justify-content: space-between; font-size: 1.15rem; }
.total-line strong { color: var(--red); }
.cart-actions .btn { flex: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 35;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

#lightbox { border: 0; padding: 0; background: transparent; max-width: min(960px, 94vw); position: relative; }
#lightbox::backdrop { background: rgba(12, 6, 4, 0.82); }
#lightbox img { width: 100%; height: auto; border-radius: 12px; }
#lightbox button {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 720px) {
  .popular-grid, .deal-grid, .video-grid, .card-grid, .sheet-grid { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .shot.wide { grid-column: span 2; grid-row: span 2; }
  .shot.wide img { aspect-ratio: 1; }
  .site-footer { padding-bottom: 28px; }
  .mobile-bar { display: none; }
  .toast { bottom: 24px; }
}

@media (min-width: 980px) {
  .hero-grid, .shop-grid, .contact-grid { grid-template-columns: 1.05fr 0.95fr; }
  .popular-grid { grid-template-columns: repeat(4, 1fr); }
  .deal-grid { grid-template-columns: repeat(3, 1fr); }
  .item-pizza { flex-direction: row; align-items: center; }
  .item-pizza .chips { justify-content: flex-end; }
  .nav-toggle { display: none; }
}

@media (max-width: 719px) {
  :root { --header: 62px; }
  .hero { padding-top: 8px; }
  .hero-visual { order: -1; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .float-card { display: none; }
  .cart-btn { display: none; }
  .logo-place { display: none; }
  .hero h1 { font-size: 2.35rem; margin: 6px 0 8px; max-width: none; }
  .urdu { font-size: 1.05rem; line-height: 1.7; margin-bottom: 4px; }
  .lead { font-size: 0.98rem; }
  .hero-actions, .phone-row { margin-top: 12px; }
  .hero-actions .btn { flex: 1 1 140px; }
  .logo-mark { width: 38px; height: 38px; }
  .logo-name { font-size: 1.05rem; }
  .header-inner { gap: 8px; }
  .nav-toggle, .mobile-bar a, .mobile-bar button { min-height: 44px; }
}

@media (max-height: 500px) {
  .hero-photo { max-height: 42vh; }
  .float-card { display: none; }
}

@media (max-width: 719px) and (max-height: 640px) {
  .hero-photo { max-height: 96px; }
  .phone-row, .lead { display: none; }
  .hero h1 { font-size: 1.9rem; }
  .urdu { font-size: 0.95rem; line-height: 1.6; }
}

@media (max-width: 380px) {
  .topbar { font-size: 0.78rem; padding-left: 10px; padding-right: 10px; }
  .logo-name { font-size: 0.92rem; }
  .wrap { width: min(1120px, calc(100% - 20px)); }
}

@media (max-width: 979px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header) 12px auto 12px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    z-index: 30;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; min-height: 44px; display: flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
