:root {
  --cream: #fbf4e6;
  --paper: #fffdf8;
  --brown-900: #3c2410;
  --brown-700: #6b4218;
  --brown-500: #8a5a24;
  --gold: #e8a33d;
  --gold-dark: #b06e1f;
  --terracotta: #c65b34;
  --green: #5f8a4e;
  --line: #e7d6b8;
  --shadow: 0 10px 30px rgba(60, 36, 16, 0.10);
  --radius: 18px;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--brown-900);
  background: var(--cream);
}

.container { width: min(1120px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; }
a { color: var(--terracotta); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brown-900); color: #fff; padding: .7em 1.2em; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--gold-dark);
  margin-bottom: .6em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 230, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--brown-900); }
.brand-mark svg { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1rem; }
.brand-text em { font-style: normal; font-family: var(--font-display); color: var(--terracotta); font-size: 1.05rem; font-weight: 700; }
.site-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-nav a {
  text-decoration: none; color: var(--brown-700); font-weight: 600; font-size: .94rem;
  padding: .3em .1em; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--terracotta); border-bottom-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-body); text-decoration: none;
  font-weight: 700; font-size: .98rem; cursor: pointer;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px rgba(198, 91, 52, .3); }
.btn-ghost { background: transparent; color: var(--brown-700); border-color: var(--brown-500); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 20%, #fbe9c3 0%, var(--cream) 55%); padding: clamp(2.5rem, 6vw, 4.5rem) 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.hero .accent { color: var(--terracotta); }
.lead { font-size: 1.08rem; color: var(--brown-700); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.2rem 0 1.4rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; }
.hero-badges li {
  font-size: .8rem; font-weight: 700; color: var(--brown-700);
  background: #eef3dd; border: 1px solid #cdddb4; border-radius: 999px; padding: .35em .9em;
}
.hero-art { display: flex; justify-content: center; }
.hero-svg { width: 100%; max-width: 460px; height: auto; }
.chip-a { animation: bob 5s ease-in-out infinite; }
.chip-b { animation: bob 6s ease-in-out .6s infinite; }
.chip-c { animation: bob 4.5s ease-in-out 1.1s infinite; }
.chip-d { animation: bob 5.5s ease-in-out .3s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip-a,.chip-b,.chip-c,.chip-d { animation: none; }
  .btn:hover { transform: none; }
}

/* Sections */
.section { padding: clamp(2.8rem, 7vw, 4.6rem) 0; }
.section-head { max-width: 66ch; margin-bottom: 2rem; }
.section-sub { color: var(--brown-700); }
.sub-title { margin-top: 1.8rem; }
.note { font-size: .9rem; color: var(--brown-500); }

/* Profil */
.profil-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: start; }
.prose p:last-child { margin-bottom: 0; }
.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow);
}
.info-card h3 { color: var(--terracotta); }
.info-card dl { margin: 0; }
.info-card dt { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); margin-top: .9rem; }
.info-card dt:first-child { margin-top: 0; }
.info-card dd { margin: .15rem 0 0; color: var(--brown-700); font-size: .95rem; }
.stats {
  list-style: none; padding: 0; margin: 2.2rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stats li { background: var(--brown-900); color: var(--cream); border-radius: var(--radius); padding: 1.1rem .9rem; text-align: center; }
.stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.stats span { font-size: .83rem; opacity: .85; }

/* Produk */
.section-menu { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.menu-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem; cursor: pointer; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.menu-card:hover, .menu-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-art {
  display: block; width: calc(100% + 2.8rem); height: 210px; object-fit: cover;
  margin: -1.4rem -1.4rem 1rem; background: #eadfc8;
}
.menu-card h3 { margin-bottom: .35rem; }
.menu-card > p { font-size: .95rem; color: var(--brown-700); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--terracotta); margin-bottom: .6rem; }
.price span { font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--brown-500); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.tags li { font-size: .74rem; font-weight: 700; background: #f4e3c2; color: var(--brown-700); border-radius: 999px; padding: .28em .8em; }

.label-panel { margin-top: 2.4rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.label-panel h3 { color: var(--brown-900); }

/* Tabel */
.label-table, .comp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.label-table th[scope="col"], .comp-table th[scope="col"] {
  text-align: left; color: var(--brown-500); font-size: .76rem; text-transform: uppercase;
  letter-spacing: .06em; padding: .4rem .6rem .4rem 0; border-bottom: 2px solid var(--line); font-family: var(--font-body);
}
.label-table th[scope="row"], .label-table td, .comp-table td {
  padding: .55rem .6rem .55rem 0; border-bottom: 1px solid var(--line);
  vertical-align: top; color: var(--brown-700); text-align: left; font-weight: 400;
}
.label-table th[scope="row"] { font-weight: 700; color: var(--brown-900); white-space: nowrap; }
.label-table tbody tr:last-child th, .label-table tbody tr:last-child td,
.comp-table tbody tr:last-child td { border-bottom: 0; }

/* Komposisi */
.section-komposisi { background: var(--cream); }
.comp-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.comp-tab {
  font-family: var(--font-body); font-weight: 700; font-size: .92rem;
  border: 2px solid var(--gold-dark); background: transparent; color: var(--brown-700);
  border-radius: 999px; padding: .5em 1.2em; cursor: pointer; transition: background .15s, color .15s;
}
.comp-tab:hover { background: #f4e3c2; }
.comp-tab[aria-selected="true"] { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.comp-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; align-items: start; }
.comp-main, .comp-side {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow);
}
.comp-main { border-top: 6px solid var(--gold); }
.comp-desc { color: var(--brown-700); }
.comp-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.comp-list li { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.comp-list li:last-child { border-bottom: none; }
.comp-list .ing { font-weight: 600; }
.comp-list .amt { color: var(--gold-dark); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.comp-side h4 { color: var(--terracotta); margin-top: 1.2rem; }
.comp-side h4:first-child { margin-top: 0; }
.allergen { font-size: .9rem; background: #f8ecd4; border-left: 4px solid var(--gold); padding: .8rem 1rem; border-radius: 0 10px 10px 0; margin: 0 0 1rem; }

/* Kemasan & QR */
.section-kemasan { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kemasan-wrap { max-width: 760px; }
.scan-steps { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .8rem; }
.scan-steps li { display: flex; gap: .9rem; align-items: flex-start; }
.scan-steps p { margin: .3em 0 0; font-size: .95rem; color: var(--brown-700); }
.step-num {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--brown-900); font-weight: 800; font-family: var(--font-display);
}

/* Pesan */
.section-pesan { background: var(--brown-900); color: var(--cream); }
.section-pesan .kicker { color: var(--gold); }
.section-pesan a { color: #f3c781; }
.section-pesan p { color: #e6d7b8; }
.kontak-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2.2rem; align-items: start; }
.kontak-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.kontak-list li { padding: .6rem 0; border-bottom: 1px solid rgba(251, 244, 230, .18); }
.kontak-list strong { display: inline-block; min-width: 132px; color: var(--gold); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.kontak-card { background: rgba(255, 253, 248, .06); border: 1px solid rgba(251, 244, 230, .25); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.kontak-card h3 { color: var(--gold); }
.unset { font-style: italic; opacity: .75; }

.order-form { margin-top: 1.4rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--gold); margin-bottom: .3rem; }
.optional { font-weight: 400; opacity: .8; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--brown-900); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: .65em .8em;
}
.field textarea { resize: vertical; }
.order-preview { background: rgba(255, 253, 248, .07); border: 1px dashed rgba(251, 244, 230, .4); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.order-preview h3 { font-size: .95rem; color: var(--gold); margin-bottom: .4rem; }
.summary { margin: 0; font-size: .92rem; white-space: pre-wrap; color: #f3e8d0; }
.order-fallback { background: #fdf0dd; color: var(--brown-900); border-left: 5px solid var(--gold-dark); border-radius: 0 12px 12px 0; padding: .9rem 1.1rem; font-size: .92rem; }

/* Footer */
.site-footer { background: #2b1a0c; color: #cbb894; padding: 1.4rem 0 1.6rem; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.footer-inner p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.site-footer a { color: #cbb894; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-cap { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(203, 184, 148, .25); }
.footer-cap p { margin: 0; font-size: .82rem; opacity: .8; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .profil-grid, .comp-panel, .kontak-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .menu-grid { grid-template-columns: 1fr; }
  .stats, .field-row { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: .9rem; }
  .site-nav a { font-size: .88rem; }
  .label-table { font-size: .85rem; }
  .label-table th[scope="row"] { white-space: normal; }
}
@media (max-width: 560px) {
  .stats, .field-row { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: .4rem; }
  .kontak-list strong { display: block; min-width: 0; }
  body { font-size: 16px; }
}
