/* =========================================================
   Rania Ayam Krispi — style
   Palet diambil dari logo (cokelat) & banner (kuning)
   ========================================================= */
:root {
  --brown: #4e2d1c;
  --brown-2: #6b3f27;
  --ink: #2a1810;
  --yellow: #ffc21a;
  --yellow-2: #ffd75a;
  --cream: #fff8ec;
  --cream-2: #fbeed6;
  --red: #d63a1f;
  --wa: #1fa855;
  --muted: #7a6150;
  --line: rgba(78, 45, 28, .14);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -18px rgba(78, 45, 28, .45);
  --font-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; color: var(--brown); letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0; }
b { font-weight: 700; }

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

:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brown-2);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--brown { background: var(--brown); color: var(--cream); box-shadow: 0 8px 0 -2px var(--ink); }
.btn--brown:hover { background: var(--brown-2); }
.btn--ghost { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn--ghost:hover { background: rgba(78, 45, 28, .08); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #18914a; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .92rem; box-shadow: none; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 248, 236, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav__brand img { width: 128px; height: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--brown); position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__brand img { width: 112px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--yellow);
  overflow: hidden;
  padding: clamp(40px, 7vw, 90px) 0 0;
}
.hero::before { /* tekstur titik halus */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(78, 45, 28, .09) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 30px;
  padding-bottom: clamp(56px, 7vw, 90px);
}
.hero h1 { color: var(--ink); }
.hero h1 .hl {
  color: var(--brown);
  background: linear-gradient(transparent 62%, rgba(255, 255, 255, .7) 62%, rgba(255, 255, 255, .7) 92%, transparent 92%);
  padding: 0 .08em;
}
.hero__lead { margin-top: 20px; font-size: 1.12rem; max-width: 34ch; color: var(--ink); opacity: .85; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.halal {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--brown); color: var(--yellow); letter-spacing: .1em;
}

.hero__visual { position: relative; aspect-ratio: 1 / .82; }
.hero__plate {
  position: absolute; inset: 8% 4% 2% 6%;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 0 0 14px rgba(255, 255, 255, .5), 0 30px 60px -20px rgba(78, 45, 28, .55);
}
.hero__img {
  position: absolute; left: -2%; top: 6%; width: 104%; height: auto;
  filter: drop-shadow(0 26px 26px rgba(78, 45, 28, .35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }

.price-tag {
  position: absolute; right: 2%; top: 2%;
  width: clamp(96px, 12vw, 124px); aspect-ratio: 1;
  display: grid; place-content: center; text-align: center;
  background: var(--red); color: #fff;
  border-radius: 50%;
  transform: rotate(10deg);
  box-shadow: 0 10px 0 -3px #9d2512;
  font-family: var(--font-display);
}
.price-tag::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .55);
}
.price-tag small { font-size: .9rem; font-weight: 500; line-height: 1; }
.price-tag strong { font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1; font-weight: 700; }

.checker {
  position: relative; height: 34px;
  background: repeating-conic-gradient(var(--cream) 0 25%, var(--brown) 0 50%) 0 0 / 34px 34px;
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__visual { max-width: 520px; width: 100%; margin: 6px auto 0; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--brown); color: var(--yellow); overflow: hidden; padding: 16px 0; }
.marquee__track {
  display: flex; gap: 28px; width: max-content;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee i { font-style: normal; color: var(--cream); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__sub { margin-top: 14px; color: var(--muted); }
.section--dark {
  background: var(--ink);
  color: var(--cream);
  background-image: radial-gradient(circle at 85% 0%, rgba(255, 194, 26, .12), transparent 45%);
}
.section__head--light h2 { color: var(--cream); }
.section__head--light .eyebrow { color: var(--yellow); }
.section__head--light .section__sub { color: rgba(255, 248, 236, .7); }
.section--yellow { background: var(--yellow); }

/* ---------- Favorit ---------- */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.fav {
  position: relative;
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 22px 24px;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fav:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fav img { width: 100%; height: 190px; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 14px 14px rgba(78, 45, 28, .22)); }
.fav__body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fav p { color: var(--muted); font-size: .96rem; }
.fav__price {
  margin-top: auto; padding-top: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--red);
}
.fav--big {
  grid-column: span 4; grid-row: span 1;
  flex-direction: row; align-items: center; gap: 24px;
  background: var(--cream-2);
}
.fav--big img { width: 58%; height: 280px; margin: 0; }
.fav--big h3 { font-size: 1.9rem; }
.fav--bbq { background: #fff1e4; }

@media (max-width: 980px) {
  .fav-grid { grid-template-columns: repeat(2, 1fr); }
  .fav, .fav--big { grid-column: span 1; }
  .fav--big { grid-column: span 2; }
}
@media (max-width: 600px) {
  .fav-grid { grid-template-columns: 1fr; }
  .fav, .fav--big { grid-column: span 1; }
  .fav--big { flex-direction: column; align-items: stretch; }
  .fav--big img { width: 100%; height: 210px; }
  .fav--big h3 { font-size: 1.5rem; }
}

/* ---------- Menu ---------- */
.tabs {
  display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
  padding: 6px; margin-bottom: 26px;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px; width: fit-content; max-width: 100%;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px;
  background: transparent; color: rgba(255, 248, 236, .75);
  font: 700 .95rem/1 var(--font-body); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.tab:hover { color: var(--cream); }
.tab.is-active { background: var(--yellow); color: var(--ink); }
.tab:focus-visible { outline-color: var(--yellow); }

.menu-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (max-width: 760px) { .menu-list { grid-template-columns: 1fr; } }

.item {
  display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 16px 14px 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  animation: rise .35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.item__img {
  width: 76px; height: 64px; object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4));
}
@media (max-width: 480px) {
  .item { grid-template-columns: 56px 1fr auto; gap: 12px; padding: 12px; }
  .item__img { width: 56px; height: 50px; }
  .item__desc { display: none; }
  .opt { padding: 0 10px; }
}
.item__name { font-weight: 700; color: var(--cream); line-height: 1.3; }
.item__desc { font-size: .86rem; color: rgba(255, 248, 236, .6); margin-top: 2px; }
.item__price { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--yellow); margin-top: 4px; }

.item__opts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.opt {
  min-height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid rgba(255, 248, 236, .28); background: transparent;
  color: rgba(255, 248, 236, .8); font: 600 .8rem/1 var(--font-body); cursor: pointer;
}
.opt.is-on { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.opt:focus-visible { outline-color: var(--yellow); }

.add {
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--yellow); color: var(--ink);
  font: 700 1.6rem/1 var(--font-display); cursor: pointer;
  display: grid; place-items: center;
  transition: transform .12s ease, background-color .15s;
}
.add:hover { background: var(--yellow-2); transform: scale(1.06); }
.add:active { transform: scale(.94); }
.add:focus-visible { outline-color: var(--yellow); }

.add:disabled { background: rgba(255, 255, 255, .15); color: rgba(255, 248, 236, .4); cursor: not-allowed; transform: none; }
.sold {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(214, 58, 31, .18); color: #ff8c75;
  font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
}
.item--off .item__img { filter: grayscale(1); opacity: .45; }
.item--off .item__name, .item--off .item__price { opacity: .55; }
.menu-empty { color: rgba(255, 248, 236, .6); }
.closed-note {
  margin-bottom: 22px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(214, 58, 31, .16); border: 1px solid rgba(214, 58, 31, .45);
  color: #ffd2c8; font-weight: 600;
}

/* ---------- Pengumuman ---------- */
.announce {
  background: var(--red); color: #fff; text-align: center;
  padding: 10px 20px; font-weight: 600; font-size: .92rem;
}

.menu-note { margin-top: 26px; font-size: .9rem; color: rgba(255, 248, 236, .6); }
.menu-note a { color: var(--yellow); font-weight: 700; text-decoration: none; margin-left: 6px; white-space: nowrap; }
.menu-note a:hover { text-decoration: underline; }

/* ---------- Kenapa ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item {
  padding: 28px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.why__icon {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--brown);
  margin-bottom: 18px;
  transform: rotate(-4deg);
}
.why__item h3 { margin-bottom: 8px; }
.why__item p { color: var(--muted); font-size: .96rem; }
@media (max-width: 980px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* ---------- Lokasi ---------- */
.loc { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.loc address { font-style: normal; font-size: 1.15rem; margin-top: 18px; line-height: 1.7; }
.loc__hours { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; color: var(--brown); }
.loc__hours[hidden] { display: none; }
.loc__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.loc__map {
  border-radius: var(--radius); overflow: hidden;
  border: 4px solid var(--brown);
  box-shadow: 10px 10px 0 var(--brown);
  aspect-ratio: 4 / 3; background: var(--cream-2);
}
.loc__map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) {
  .loc { grid-template-columns: 1fr; }
  .loc__map { box-shadow: 6px 6px 0 var(--brown); }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 248, 236, .75); padding: 56px 0 120px; text-align: center; font-size: .95rem; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer__logo { width: 150px; height: auto; filter: brightness(0) invert(1) sepia(.2); opacity: .95; }
.footer a { color: var(--yellow); font-weight: 700; text-decoration: none; }
.footer__copy { font-size: .85rem; opacity: .6; }

/* ---------- Cart FAB ---------- */
.cart-fab {
  position: fixed; z-index: 60; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 8px 22px 8px 8px;
  width: min(440px, calc(100% - 32px));
  border: 0; border-radius: 999px;
  background: var(--brown); color: var(--cream);
  box-shadow: 0 16px 40px -10px rgba(42, 24, 16, .7);
  font: 700 1rem/1 var(--font-body); cursor: pointer;
  animation: pop .3s ease;
}
.cart-fab[hidden] { display: none; }
@keyframes pop { from { transform: translate(-50%, 20px); opacity: 0; } }
.cart-fab.bump .cart-fab__count { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.3); } }
.cart-fab__count {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-display); font-size: 1.2rem;
}
.cart-fab__label { flex: 1; text-align: left; }
.cart-fab__total { font-family: var(--font-display); font-size: 1.15rem; color: var(--yellow); }

/* ---------- Cart drawer ---------- */
.cart-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(42, 24, 16, .5);
  animation: fade .2s ease;
}
.cart-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.cart {
  position: fixed; z-index: 80; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--cream);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cart.is-open { transform: none; box-shadow: -20px 0 60px -20px rgba(42, 24, 16, .5); }
.cart__head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; background: var(--cream); border-bottom: 1px solid var(--line);
}
.cart__head h2 { font-size: 1.6rem; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--cream-2); color: var(--brown); cursor: pointer;
  display: grid; place-items: center;
}
.icon-btn:hover { background: #f3e0bf; }

.cart__items { list-style: none; margin: 0; padding: 8px 22px; }
.cart__empty { padding: 26px 22px; color: var(--muted); }
.cart__empty[hidden] { display: none; }
.line {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.line__name { font-weight: 700; line-height: 1.3; }
.line__sub { font-size: .85rem; color: var(--muted); }
.line__price { font-family: var(--font-display); font-weight: 600; color: var(--brown); text-align: right; }
.qty { justify-self: start; display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.qty button {
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: var(--cream-2); color: var(--brown); font: 700 1.1rem/1 var(--font-body); cursor: pointer;
}
.qty button:hover { background: var(--yellow); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }

.cart__form { padding: 8px 22px 28px; display: flex; flex-direction: column; gap: 16px; margin-top: auto; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.field[hidden] { display: none; }
.field > span, .field legend { font-weight: 700; font-size: .9rem; color: var(--brown); padding: 0; margin-bottom: 6px; }
.field small { font-weight: 500; color: var(--muted); }
.field input[type="text"], .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
  font: 500 1rem/1.4 var(--font-body);
  resize: vertical;
  overflow-x: hidden;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(255, 194, 26, .5); }
.field .is-invalid { border-color: var(--red); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; min-height: 46px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .95rem;
}
.seg input:checked + span { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

.cart__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; border-top: 2px solid var(--brown);
  font-weight: 700;
}
.cart__total strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--brown); }
.cart__hint { font-size: .85rem; color: var(--muted); margin-top: -8px; }
.cart__error { color: var(--red); font-weight: 600; font-size: .9rem; min-height: 0; }
.cart__error:empty { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 90; left: 50%; top: calc(var(--nav-h) + 12px);
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-weight: 600; font-size: .92rem;
  transition: opacity .2s, transform .2s;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
