@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --soft: #f4f4f2;
  --card: #ffffff;
  --line: #e8e8e5;
  --green: #06c167;
  --green-dark: #049951;
  --cream: #f6f2e9;
  --warn: #f4a100;
  --danger: #d93025;
  --shadow: 0 18px 50px rgba(0,0,0,0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

/* Topbar */
.topbar {
  height: 82px;
  padding: 0 clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  justify-self: start;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}
.brand-copy strong {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.brand-copy small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}

.delivery-location {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--soft);
  border-radius: 999px;
  padding: 9px 14px;
  min-width: 190px;
}
.delivery-location .pin { color: var(--green); font-size: 13px; }
.delivery-location div { display: grid; line-height: 1.08; flex: 1; }
.delivery-location small { font-size: 10px; color: var(--muted); }
.delivery-location strong { font-size: 13px; }
.chev { color: var(--muted); }

.desktop-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbtn {
  border: 0;
  background: transparent;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: #3d3d3d;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.navbtn:hover, .navbtn.active {
  background: var(--soft);
  color: var(--ink);
}
.navbtn.cart-nav {
  background: var(--ink);
  color: #ffffff;
}
.navbtn.cart-nav:hover {
  background: #2a2a2a;
}

.portal-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.portal-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: .15s ease;
}
.portal-links a:hover {
  background: var(--soft);
  color: var(--ink);
}

.view { display: none; }
.view.active { display: block; }
main { min-height: calc(100vh - 82px); }

/* Hero */
.hero {
  max-width: 1380px;
  margin: 24px auto 0;
  padding: 0 clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 560px;
}

.hero-content {
  background: var(--cream);
  border-radius: 32px 0 0 32px;
  padding: clamp(44px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--green-dark);
}
.eyebrow.dark { color: #686868; }

.hero h1, .page-intro h1 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.055em;
}

.hero h1 {
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.96;
  margin: 16px 0 22px;
}
.hero h1 span { color: var(--green); }
.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: #525252;
  max-width: 560px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.primary-cta, .secondary-cta, .primary-btn, .outline-btn, .food-card button {
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 700;
  transition: 0.18s ease;
}

.primary-cta, .primary-btn, .food-card button {
  background: var(--ink);
  color: #fff;
}
.primary-cta:hover, .primary-btn:hover, .food-card button:hover {
  background: #292929;
  transform: translateY(-1px);
}
.secondary-cta, .outline-btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-trust {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
  color: #676767;
  font-size: 12px;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  border-radius: 0 32px 32px 0;
  overflow: hidden;
  background: #d7ae7b;
  min-height: 560px;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.15)), url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1400&q=85');
  background-size: cover;
  background-position: center;
}

.dish-card {
  position: absolute;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 5px solid rgba(255,255,255,0.95);
  background-size: cover;
  background-position: center;
}
.dish-one {
  width: 175px;
  height: 135px;
  left: 28px;
  bottom: 32px;
  background-image: url('https://images.unsplash.com/photo-1601050690597-df0568f70950?auto=format&fit=crop&w=600&q=80');
}
.dish-one span {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #fff;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}
.dish-two {
  width: 130px;
  height: 105px;
  right: 26px;
  top: 30px;
  background-image: url('https://images.unsplash.com/photo-1519708227418-c8fd9a32b7a2?auto=format&fit=crop&w=600&q=80');
}

.hero-badge {
  position: absolute;
  right: 28px;
  bottom: 34px;
  background: #fff;
  border-radius: 20px;
  padding: 16px 18px;
  display: grid;
  box-shadow: var(--shadow);
  min-width: 126px;
}
.hero-badge strong {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  line-height: 1;
}
.hero-badge span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Category Strip */
.category-strip {
  max-width: 1260px;
  margin: 28px auto 0;
  padding: 0 clamp(18px, 4vw, 30px);
  display: flex;
  gap: 10px;
  overflow: auto;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }
.category-chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 600;
  color: var(--ink);
  transition: 0.15s ease;
}
.category-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Menu Grid */
.menu-section {
  max-width: 1260px;
  margin: 56px auto 0;
  padding: 0 clamp(18px, 4vw, 30px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
  gap: 20px;
}
.section-heading h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 34px;
  letter-spacing: -0.04em;
  margin: 5px 0 0;
}
.section-heading p { color: var(--muted); margin: 0; }

.food-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.food-card {
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: 0.22s ease;
  display: flex;
  flex-direction: column;
}
.food-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.08);
}

.food-image-wrap {
  position: relative;
  aspect-ratio: 1.35 / 1;
  background: var(--soft);
  overflow: hidden;
}
.food-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.35s ease;
}
.food-card:hover img { transform: scale(1.025); }

.food-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 800;
}

.food-card .body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.food-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.food-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  letter-spacing: -0.025em;
  margin: 0;
}
.food-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  min-height: 40px;
  margin: 9px 0 17px;
  flex: 1;
}
.price { font-weight: 800; font-size: 17px; }
.food-card button { padding: 10px 14px; font-size: 13px; }
.price-row { display: flex; justify-content: space-between; align-items: center; }

.food-skeleton {
  height: 330px;
  border-radius: 22px;
  background: linear-gradient(90deg, #f3f3f1, #fafaf9, #f3f3f1);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Service Banner */
.service-banner {
  max-width: 1200px;
  margin: 72px auto;
  padding: 34px 38px;
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.service-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Manrope';
  font-weight: 800;
  font-size: 22px;
}
.service-banner h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 27px;
  letter-spacing: -0.035em;
  margin: 5px 0;
}
.service-banner p { color: #bcbcbc; margin: 0; max-width: 680px; }
.service-banner button {
  background: #fff;
  color: #111;
  white-space: nowrap;
  border: 0;
  border-radius: 12px;
  padding: 13px 20px;
  font-weight: 700;
}

/* Page views */
.page-view {
  padding: 52px clamp(18px, 5vw, 72px) 90px;
}
.page-shell {
  max-width: 1100px;
  margin: auto;
}
.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.page-intro { padding-top: 24px; }
.page-intro h1 { font-size: 58px; line-height: 1; margin: 12px 0 18px; }
.page-intro p { font-size: 17px; color: var(--muted); line-height: 1.6; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.track-panel { margin-top: 12px; }
.row { display: flex; gap: 9px; }
.row input { flex: 1; }
.row button {
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 13px 20px;
  font-weight: 700;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
label small { font-weight: 500; color: var(--muted); margin-left: 4px; }
input, textarea, select {
  width: 100%;
  border: 1px solid #dcdcd8;
  background: #fff;
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  color: var(--ink);
}
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: #8e8e8a;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}
.wide { width: 100%; }
.msg { margin-top: 12px; color: var(--danger); font-size: 13px; font-weight: 600; }

/* My Orders List */
.my-orders-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 24px;
}
.my-order-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: 0.18s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: 100%;
}
.my-order-item:hover {
  border-color: #b8b8b4;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.my-order-item.active {
  border-color: var(--ink);
  background: #fafaf8;
  box-shadow: 0 0 0 2px var(--ink);
}
.my-order-info {
  display: grid;
  gap: 3px;
}
.my-order-info strong {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
}
.my-order-info small {
  color: var(--muted);
  font-size: 12px;
}

/* Tracking Box */
.track-box {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.order-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}
.order-code {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 800;
}
.track-box h3 { font-family: 'Manrope'; margin: 5px 0; font-size: 20px; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f0f0ee;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge.paid { background: #e8f8ef; color: #08753e; }
.badge.failed { background: #fdeceb; color: #b42318; }
.badge.cash_due, .badge.pending { background: #fff5dc; color: #8f6200; }

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin: 18px 0;
}
.step {
  height: 6px;
  border-radius: 999px;
  background: #e5e5e2;
}
.step.done { background: var(--green); }

/* Cart Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.48);
  z-index: 80;
  padding: 20px;
  overflow: auto;
}
.modal.open { display: block; }
.modal-card {
  position: relative;
  max-width: 610px;
  background: #fff;
  margin: 28px auto;
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.22);
}
.close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 0;
  background: var(--soft);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 22px;
}
.cart-heading h2 {
  font-family: 'Manrope';
  font-size: 30px;
  letter-spacing: -0.04em;
  margin: 4px 0 20px;
}
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.cart-line > div:first-child div {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.qty { display: flex; align-items: center; gap: 9px; }
.qty button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  font-weight: 800;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  font-size: 19px;
  padding: 20px 0;
}
.checkout-total strong { font-family: 'Manrope'; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-btn { margin-top: 6px; }

/* Floating Mobile Cart */
.floating-cart {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 35;
  border: 0;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  display: none;
  align-items: center;
  gap: 12px;
  min-width: 330px;
  padding: 12px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.floating-cart .bag-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green);
  display: grid;
  place-items: center;
}
.floating-cart > span:nth-child(2) {
  display: grid;
  text-align: left;
  line-height: 1.1;
  flex: 1;
}
.floating-cart small { color: #bdbdbd; margin-top: 4px; }
.floating-cart b { font-size: 12px; }

.mobile-nav { display: none; }

/* Responsive */
@media(max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .delivery-location { display: none; }
  .hero { grid-template-columns: 1fr; padding: 0 18px; min-height: auto; }
  .hero-content { border-radius: 26px 26px 0 0; padding: 52px 34px; }
  .hero-visual { border-radius: 0 0 26px 26px; min-height: 380px; }
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .service-banner { margin: 54px 18px; grid-template-columns: auto 1fr; }
  .service-banner button { grid-column: 2; justify-self: start; }
  .two-column { grid-template-columns: 1fr; gap: 20px; }
}

@media(max-width: 700px) {
  body { padding-bottom: 72px; }
  .topbar { height: 68px; padding: 0 16px; grid-template-columns: 1fr; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .desktop-nav { display: none; }
  .hero { margin-top: 10px; }
  .hero-content { padding: 36px 25px; }
  .hero h1 { font-size: 46px; }
  .hero p { font-size: 15px; }
  .hero-trust { gap: 10px; font-size: 10px; }
  .hero-visual { min-height: 285px; }
  .dish-two { display: none; }
  .dish-one { width: 120px; height: 90px; }
  .hero-badge { right: 18px; bottom: 18px; }
  .category-strip { margin-top: 18px; }
  .menu-section { margin-top: 40px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 28px; }
  .section-heading p { display: none; }
  .food-grid { grid-template-columns: 1fr; gap: 16px; }
  .food-image-wrap { aspect-ratio: 1.6 / 1; }
  .food-card p { min-height: 0; }
  .service-banner { padding: 26px; grid-template-columns: 1fr; margin-top: 45px; }
  .service-icon { width: 54px; height: 54px; }
  .service-banner button { grid-column: 1; }
  .page-view { padding: 30px 16px 100px; }
  .page-intro h1 { font-size: 44px; }
  .row { flex-direction: column; }
  .checkout-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal-card { margin: 0; min-height: 100vh; border-radius: 0; padding: 28px 20px 100px; }
  .floating-cart.show { display: flex; bottom: 78px; width: calc(100% - 28px); min-width: 0; }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    height: 66px;
    background: #fff;
    border-top: 1px solid var(--line);
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
  .mobile-navbtn {
    border: 0;
    background: #fff;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    font-size: 11px;
    color: #737373;
  }
  .mobile-navbtn span { font-size: 19px; line-height: 1; }
  .mobile-navbtn.active { color: var(--ink); font-weight: 800; }
}
