/* ============ Dasar ============ */
:root {
  --cream: #fdf8f1;
  --paper: #ffffff;
  --ink: #231a13;
  --ink-soft: #6f5d4d;
  --line: #ebdfd1;
  --orange: #e2542c;
  --orange-dark: #bf431f;
  --amber: #f5b942;
  --green: #2f6b4f;
  --shadow: 0 20px 45px -28px rgba(52, 30, 12, 0.45);
  --radius: 22px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

/* ============ Tombol ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(226, 84, 44, 0.9);
}
.btn--primary:hover { background: var(--orange-dark); }

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

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: #dccdbd;
}
.btn--outline:hover { background: #f6ece1; }

.btn--light {
  background: #fff;
  color: var(--ink);
}
.btn--light:hover { background: #ffe9d8; }

.btn--sm { padding: 9px 14px; font-size: 0.82rem; }

.btn--block { width: 100%; }

.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.icon-btn:hover { background: #f8efe4; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 248, 241, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(235, 223, 209, 0.9);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--amber);
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 1.02rem; }
.brand__text small { color: var(--ink-soft); font-size: 0.74rem; }

.site-nav { display: flex; gap: 26px; font-size: 0.92rem; font-weight: 600; }
.site-nav a { color: var(--ink-soft); transition: color 0.2s; }
.site-nav a:hover { color: var(--orange); }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}
.cart-btn:hover { background: #362619; }

.cart-btn__badge {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
}

/* ============ Hero ============ */
.hero { padding: 56px 0 30px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fbe7d6;
  color: #94411f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  margin: 20px 0 18px;
}
.hero h1 em { color: var(--orange); font-style: italic; }

.hero__lead {
  color: var(--ink-soft);
  font-size: 1.03rem;
  max-width: 46ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats dt { font-family: "Fraunces", serif; font-size: 1.3rem; font-weight: 700; }
.hero__stats dd { margin: 0; color: var(--ink-soft); font-size: 0.79rem; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero__badge {
  position: absolute;
  left: -14px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px -22px rgba(52, 30, 12, 0.5);
}
.hero__badge-icon { font-size: 1.5rem; }
.hero__badge strong { display: block; font-size: 0.9rem; }
.hero__badge small { color: var(--ink-soft); font-size: 0.74rem; }

/* ============ Section umum ============ */
.steps, .menu { padding: 70px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: 8px; }
.section-head__note { max-width: 40ch; color: var(--ink-soft); font-size: 0.88rem; }

.kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.kicker--light { color: var(--amber); }

/* ============ Filter ============ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.18s ease;
}
.chip:hover { border-color: #d6c3ae; color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ============ Kartu menu ============ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.dish {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.dish__media { position: relative; overflow: hidden; }
.dish__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.dish:hover .dish__media img { transform: scale(1.04); }

.dish__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dish__cat {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
}

.dish__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
  gap: 6px;
}
.dish__body h3 { font-size: 1.12rem; }
.dish__body > p { color: var(--ink-soft); font-size: 0.84rem; line-height: 1.5; flex: 1; }

.dish__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.price { font-weight: 800; font-size: 1rem; }
.dish__actions { display: flex; gap: 6px; }

/* ============ Cara pesan ============ */
.steps { background: #fff; border-block: 1px solid var(--line); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: #fdf6ec;
  border: 1px solid #f2e4d3;
}
.step__num {
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  color: #e0b98c;
  font-weight: 700;
}
.step h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.step p { color: var(--ink-soft); font-size: 0.88rem; }

.preorder-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #2f6b4f, #24543d);
  color: #f6f1e8;
}
.preorder-note h3 { font-size: 1.3rem; }
.preorder-note p { margin-top: 6px; font-size: 0.9rem; opacity: 0.88; }

/* ============ Kontak ============ */
.contact { padding: 70px 0; background: var(--ink); color: #f7f0e6; }
.contact__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 12px; }
.contact p { color: #c8b8a6; font-size: 0.94rem; max-width: 46ch; }

.contact__card {
  padding: 26px;
  border-radius: var(--radius);
  background: #30241a;
  border: 1px solid #45362a;
}
.contact__label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.contact__phone { display: block; font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 700; margin: 6px 0 10px; }
.contact__phone:hover { color: var(--amber); }
.contact__addr { font-size: 0.85rem; color: #b8a794; }

/* ============ Footer ============ */
.site-footer { padding: 24px 0; background: #1a130d; color: #9c8a78; font-size: 0.8rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer__admin { color: #e8d8c5; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer__admin:hover { color: #f5b942; }

/* ============ Overlay & keranjang ============ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(35, 26, 19, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: -30px 0 70px -50px rgba(0, 0, 0, 0.6);
  transform: translateX(102%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart.is-open { transform: translateX(0); }

.cart__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.cart__head h2 { font-size: 1.4rem; }
.cart__sub { color: var(--ink-soft); font-size: 0.82rem; margin-top: 2px; }

.cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 40px 20px;
  border: 1px dashed #e0d1c0;
  border-radius: 18px;
  background: #fdf8f2;
}
.cart__empty-icon { font-size: 2.2rem; }
.cart__empty p { color: var(--ink-soft); font-size: 0.85rem; max-width: 28ch; }
.cart__empty .btn { margin-top: 8px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f2e9df;
}
.cart-item:last-child { border-bottom: none; padding-bottom: 0; }
.cart-item img {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cart-item__top h4 { margin: 0; font-size: 0.9rem; font-weight: 700; line-height: 1.3; }
.cart-item__price { color: var(--ink-soft); font-size: 0.82rem; }
.cart-item__remove {
  border: none;
  background: none;
  color: #b09a86;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 4px;
}
.cart-item__remove:hover { color: var(--orange); }

.qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty button {
  width: 30px;
  height: 30px;
  border: none;
  background: #fff;
  font-size: 1rem;
  color: var(--ink);
}
.qty button:hover { background: #f8efe4; }
.qty span { min-width: 26px; text-align: center; font-size: 0.85rem; font-weight: 700; }

.checkout { display: flex; flex-direction: column; gap: 18px; }

.field-group {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.field-group legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.option:hover { border-color: #d8c5b0; }
.option input { accent-color: var(--orange); width: 17px; height: 17px; flex-shrink: 0; }
.option:has(input:checked) { border-color: var(--orange); background: #fdf1e9; }
.option__body { display: flex; flex-direction: column; line-height: 1.35; }
.option__body strong { font-size: 0.88rem; }
.option__body small { color: var(--ink-soft); font-size: 0.76rem; }
.option--sm { padding: 10px 14px; font-size: 0.86rem; font-weight: 600; }

.schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #fdf7ef;
  border: 1px solid #f0e2d1;
}
.schedule .hint { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.74rem; }
.schedule .hint.is-error { color: #c0392b; font-weight: 600; }

.field { display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(226, 84, 44, 0.35);
  border-color: var(--orange);
}

.cart__foot {
  padding: 16px 22px 18px;
  border-top: 1px solid var(--line);
  background: #fdf8f2;
}
.row { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 4px; }
.row--total { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin: 8px 0 12px; }
.foot-note { text-align: center; color: #9c8a78; font-size: 0.72rem; margin-top: 8px; }

/* ============ Modal struk ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(35, 26, 19, 0.55);
  backdrop-filter: blur(3px);
}
.modal__card {
  width: min(460px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: pop 0.25s ease;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e5f3ea;
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 800;
}
.modal__card h2 { font-size: 1.55rem; }
.modal__sub { color: var(--ink-soft); font-size: 0.86rem; margin: 6px 0 18px; }

.receipt {
  text-align: left;
  border: 1px dashed #ddcdbb;
  border-radius: 16px;
  padding: 16px;
  background: #fdf9f3;
  font-size: 0.84rem;
  margin-bottom: 16px;
}
.receipt__row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--ink-soft); }
.receipt__row strong { color: var(--ink); }
.receipt__row--total {
  border-top: 1px solid #e6d8c7;
  margin-top: 6px;
  padding-top: 10px;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 800;
}
.receipt__items { border-bottom: 1px solid #e6d8c7; padding-bottom: 8px; margin-bottom: 6px; }

.modal__card .btn { margin-bottom: 8px; }
.modal__card .btn:last-child { margin-bottom: 0; }

/* ============ Toast ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============ Riwayat pesanan ============ */
.header__actions { display: flex; align-items: center; gap: 8px; }

.orders-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s;
}
.orders-btn:hover { border-color: #d6c3ae; background: #fbf5ec; }

.cart-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.link-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--orange); }

.modal__card--wide {
  width: min(560px, 100%);
  text-align: left;
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal__sub--left { text-align: left; margin: 4px 0 16px; }

.orders-list { display: flex; flex-direction: column; gap: 14px; }

.order-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.order-card__head strong { display: block; font-size: 0.92rem; letter-spacing: 0.02em; }
.order-card__head small { color: var(--ink-soft); font-size: 0.74rem; }
.order-card .receipt__items { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.order-card .receipt__row { font-size: 0.82rem; }

.order-status {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fdf1e9;
  color: #94411f;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.order-card__actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.order-card__actions .btn { flex: 1; }

/* ============ Responsif ============ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .contact__inner { grid-template-columns: 1fr; }
  .site-nav { gap: 18px; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .orders-btn span { display: none; }
  .orders-btn { padding: 10px 12px; }
  .field input, .field textarea, .schedule input { font-size: 16px; }
  .hero { padding-top: 34px; }
  .hero__badge { left: 12px; bottom: 12px; padding: 10px 14px; }
  .menu, .steps, .contact { padding: 48px 0; }
  .section-head { margin-bottom: 22px; }
  .cart-btn span:not(.cart-btn__badge) { display: none; }
  .cart-btn { padding: 10px 12px; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 28px); }
  .menu-grid { grid-template-columns: 1fr; }
  .dish__foot { flex-direction: column; align-items: stretch; }
  .dish__actions { justify-content: space-between; }
  .dish__actions .btn { flex: 1; }
  .cart__body, .cart__head, .cart__foot { padding-inline: 16px; }
}
