/* ============================================================
   DUMPLINGS DELIGHT — Core Design System
   Brand: PMS 1655C orange on deep black, cream paper accents.
   Fonts: Bebas Neue (display) · Montserrat (body) · Pacifico (script)
   ============================================================ */

:root {
  /* palette */
  --ink: #0a0a0c;
  --coal: #121216;
  --panel: #17171d;
  --panel-2: #1e1e26;
  --line: #2a2a33;
  --line-soft: #23232b;
  --orange: #fc4c02;
  --orange-hi: #ff6a1f;
  --orange-soft: #ff8a4d;
  --amber: #ffb347;
  --cream: #f6efe4;
  --cream-dim: #cfc6b8;
  --muted: #9a948a;
  --good: #3ecf6a;
  --warn: #ffb347;
  --danger: #ff4d4d;

  /* type */
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-script: "Pacifico", cursive;

  /* geometry */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 8px 32px rgba(252, 76, 2, 0.35);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* subtle brand texture over pure black */
.bg-texture {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(252, 76, 2, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(252, 76, 2, 0.05), transparent 55%),
    var(--ink);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--orange-hi); text-decoration: none; }
a:hover { color: var(--orange-soft); }

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange-hi);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 72px; }
.section-tight { padding-block: 48px; }

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.center { text-align: center; }

/* ---------- typography ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
}
.h-hero { font-size: clamp(3rem, 9vw, 6.5rem); }
.h-xl { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.h-lg { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.h-md { font-size: clamp(1.3rem, 3vw, 1.7rem); }

.script { font-family: var(--font-script); color: var(--amber); font-weight: 400; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-hi);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); }

.accent { color: var(--orange-hi); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.lead { font-size: 1.08rem; color: var(--cream-dim); max-width: 58ch; }

.price { font-family: var(--font-display); font-size: 1.5rem; color: var(--orange-hi); letter-spacing: 0.03em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--orange-hi), var(--orange));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 10px 40px rgba(252, 76, 2, 0.5); transform: translateY(-2px); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-hi); }

.btn-dark { background: var(--panel-2); color: var(--cream); }
.btn-dark:hover { background: #262630; color: var(--cream); }

.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }

/* ---------- badges & chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(252, 76, 2, 0.14);
  color: var(--orange-soft);
  border: 1px solid rgba(252, 76, 2, 0.35);
}
.badge-solid { background: var(--orange); color: #fff; border-color: var(--orange); }
.badge-good { background: rgba(62, 207, 106, 0.12); color: var(--good); border-color: rgba(62, 207, 106, 0.4); }
.badge-warn { background: rgba(255, 179, 71, 0.12); color: var(--warn); border-color: rgba(255, 179, 71, 0.4); }
.badge-neutral { background: var(--panel-2); color: var(--cream-dim); border-color: var(--line); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.chip:hover { border-color: var(--orange-soft); transform: translateY(-1px); }
.chip.is-selected, .chip[aria-pressed="true"] {
  border-color: var(--orange);
  background: linear-gradient(160deg, rgba(252, 76, 2, 0.16), rgba(252, 76, 2, 0.05));
  box-shadow: 0 0 0 1px rgba(252, 76, 2, 0.3), var(--shadow-glow);
}

.heat { color: var(--orange-hi); letter-spacing: 2px; font-size: 0.8rem; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.card-hover { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(252, 76, 2, 0.5); box-shadow: var(--shadow-lg); }

.card-brush::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 130px;
  height: 130px;
  background: radial-gradient(closest-side, rgba(252, 76, 2, 0.22), transparent);
  pointer-events: none;
}

.card-cream { background: var(--cream); color: var(--ink); border: none; }
.card-cream .muted { color: #6d675d; }

.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(252, 76, 2, 0.12);
  border: 1px solid rgba(252, 76, 2, 0.3);
  color: var(--orange-hi);
  flex: none;
}
.icon-tile svg { width: 30px; height: 30px; }
.icon-tile-lg { width: 76px; height: 76px; border-radius: 22px; }
.icon-tile-lg svg { width: 42px; height: 42px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-dim); }

.input, .select, .textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background: var(--coal);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); }
.input::placeholder, .textarea::placeholder { color: #6a655c; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23fc4c02' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field .error { color: var(--danger); font-size: 0.8rem; text-transform: none; letter-spacing: 0; }
.input.is-invalid, .select.is-invalid { border-color: var(--danger); }

/* qty stepper */
.qty { display: inline-flex; align-items: center; gap: 0; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button {
  width: 40px; height: 40px;
  border: none; background: var(--panel-2); color: var(--orange-hi);
  font-size: 1.2rem; font-weight: 800; cursor: pointer;
}
.qty button:hover { background: #262630; }
.qty output { min-width: 44px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.brand img, .brand svg { width: 44px; height: 44px; }
.brand-word { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.05em; line-height: 0.9; text-transform: uppercase; }
.brand-word span { color: var(--orange-hi); }
.nav-links { display: none; align-items: center; gap: 26px; }
.nav-links a { color: var(--cream-dim); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em; }
.nav-links a:hover, .nav-links a.is-active { color: var(--orange-hi); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ---------- status timeline (order tracking) ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; position: relative; padding-bottom: 34px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel-2);
  border: 2px solid var(--line);
  color: var(--muted);
  z-index: 1;
}
.timeline-dot svg { width: 20px; height: 20px; }
.timeline-step::before {
  content: "";
  position: absolute;
  left: 21px; top: 44px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-step:last-child::before { display: none; }
.timeline-step.is-done .timeline-dot { background: var(--orange); border-color: var(--orange); color: #fff; }
.timeline-step.is-done::before { background: var(--orange); }
.timeline-step.is-current .timeline-dot {
  background: var(--ink);
  border-color: var(--orange);
  color: var(--orange-hi);
  box-shadow: 0 0 0 6px rgba(252, 76, 2, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
.timeline-step h4 { margin: 8px 0 2px; font-size: 1.02rem; }
.timeline-step .muted { font-size: 0.85rem; }
.timeline-step.is-pending { opacity: 0.45; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(252, 76, 2, 0.16); }
  50% { box-shadow: 0 0 0 11px rgba(252, 76, 2, 0.06); }
}

/* ---------- drawer / modal ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(440px, 100vw);
  background: var(--coal);
  border-left: 1px solid var(--line);
  transform: translateX(103%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line-soft); background: var(--panel); }

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: min(560px, 100%);
  max-height: 92vh; overflow-y: auto;
  background: var(--coal);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.2s ease;
}
.modal.is-open .modal-card { transform: none; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--cream); cursor: pointer; font-size: 1.1rem;
}
.icon-btn:hover { border-color: var(--orange); color: var(--orange-hi); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  transform: translate(-50%, 20px);
  background: var(--cream); color: var(--ink);
  font-weight: 700; font-size: 0.92rem;
  padding: 13px 22px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-open { opacity: 1; transform: translate(-50%, 0); }

/* ---------- steps header (order builder) ---------- */
.step-tag {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-family: var(--font-display); font-size: 1.15rem;
  flex: none;
}

/* ---------- divider / footer ---------- */
.rule { border: none; height: 1px; background: var(--line-soft); margin-block: 0; }

.footer { border-top: 1px solid var(--line-soft); background: var(--coal); padding-block: 56px 32px; }
.footer a { color: var(--cream-dim); }
.footer a:hover { color: var(--orange-hi); }
.footer .fine { color: #6a655c; font-size: 0.78rem; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- skeleton & misc ---------- */
.skeleton {
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line-soft); background: var(--orange); color: #fff; }
.marquee-track { display: inline-flex; gap: 48px; padding-block: 10px; animation: marquee 26s linear infinite; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.08em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.num-mono { font-variant-numeric: tabular-nums; }

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