/* Pampimpom — palet dan font dari brand/BRAND.md */
:root {
  --oranye: #F46B2C;
  --krem: #FFF4DF;
  --kakao: #342018;
  --krem-2: #FBE6C2;
  --oranye-tint: #FDD9C3;
  --putih: #FFFFFF;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(52, 32, 24, .10);
  --font-judul: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-teks: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--krem);
  color: var(--kakao);
  font-family: var(--font-teks);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-judul); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--kakao); color: var(--krem); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-judul);
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--oranye-tint);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Tombol: teks kakao di atas oranye (kontras ±5:1) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-judul); font-weight: 600; font-size: 1.05rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--kakao);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--kakao); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--kakao); outline-offset: 3px; }
.btn-primary { background: var(--oranye); color: var(--kakao); }
.btn-outline { background: transparent; color: var(--kakao); }
.btn-outline:hover { background: var(--putih); }
.btn-sm { padding: 8px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--kakao); font: inherit; text-decoration: underline; cursor: pointer; padding: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 244, 223, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid rgba(52, 32, 24, .08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; height: 46px; overflow: hidden; }
.brand img { height: 108px; width: auto; max-width: none; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a:not(.btn) { text-decoration: none; font-weight: 500; }
.nav-menu a:not(.btn):hover { color: #8A3A12; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  background: var(--oranye); border-radius: 40px; z-index: 0;
}
.hero-photo img { position: relative; z-index: 1; border-radius: 40px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; box-shadow: var(--shadow); }

/* Keunggulan */
.perks { background: var(--kakao); color: var(--krem); padding: 44px 0; }
.perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.perk h3 { color: var(--krem); margin-top: 12px; }
.perk p { margin: 0; opacity: .9; }
.perk-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--oranye); color: var(--kakao); font-family: var(--font-judul); font-weight: 600; font-size: 1.2rem;
}

/* Bagian umum */
.section { padding: 88px 0; }
.section-tint { background: var(--krem-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }

/* Menu */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.menu-card {
  background: var(--putih); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; border: 2px solid transparent; transition: border-color .15s ease, transform .15s ease;
}
.menu-card:hover { border-color: var(--oranye); transform: translateY(-3px); }
.menu-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.menu-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.menu-body p { flex: 1; font-size: .98rem; }
.menu-body .btn { align-self: flex-start; }
.menu-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.menu-title h3 { margin: 0 0 8px; }
.price { font-family: var(--font-judul); font-weight: 600; white-space: nowrap; background: var(--oranye-tint); padding: 2px 10px; border-radius: 999px; }

/* Cara pesan */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.steps li { background: var(--krem); border-radius: var(--radius); padding: 28px; border: 2px solid var(--kakao); }
.steps p { margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--oranye); border: 2px solid var(--kakao); font-family: var(--font-judul); font-weight: 600; font-size: 1.5rem; margin-bottom: 14px;
}

/* Tentang */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-photos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: end; }
.about-photos img { border-radius: var(--radius); object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about-photos img:first-child { aspect-ratio: 4 / 5; }
.about-photos img:last-child { aspect-ratio: 3 / 4; margin-bottom: 40px; }

/* FAQ */
.faq details { background: var(--krem); border-radius: 16px; margin-bottom: 12px; border: 2px solid rgba(52, 32, 24, .12); }
.faq details[open] { border-color: var(--oranye); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font-family: var(--font-judul); font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--oranye); display: grid; place-items: center; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; }

/* Formulir pesan */
.order-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; flex-direction: column; }
.contact-label { font-size: .9rem; opacity: .8; }
.contact-list a { font-family: var(--font-judul); font-weight: 600; font-size: 1.5rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.order-form { background: var(--putih); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 2px solid var(--kakao); }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 110px; gap: 14px; }
label { font-weight: 500; margin-bottom: 6px; }
.opt { font-weight: 400; opacity: .7; }
input, select, textarea {
  font: inherit; color: var(--kakao); background: var(--krem);
  border: 2px solid rgba(52, 32, 24, .25); border-radius: 12px; padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--oranye); box-shadow: 0 0 0 3px var(--oranye-tint); }
[aria-invalid="true"] { border-color: #B3261E; }
.form-error { color: #B3261E; font-weight: 500; }
.form-success { text-align: center; padding: 8px 0; }
.form-success h3 { font-size: 1.4rem; }
.form-success .btn { margin: 6px 0 8px; }
.order-form.is-sent .field, .order-form.is-sent .field-row, .order-form.is-sent > .btn-block { display: none; }

/* Footer */
.site-footer { background: var(--kakao); color: var(--krem); padding: 56px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-mark { width: 72px; height: 72px; background: var(--krem); border-radius: 50%; padding: 6px; }
.footer-tag { font-family: var(--font-judul); font-weight: 600; font-size: 1.3rem; margin: 12px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 244, 223, .2); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.fine { opacity: .8; }

/* Tombol WA melayang */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--oranye); color: var(--kakao); border: 2px solid var(--kakao); box-shadow: 0 6px 18px rgba(52, 32, 24, .3);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* 404 */
.notfound { min-height: calc(100vh - 72px); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound img { width: 160px; margin: 0 auto 12px; }
.notfound .cta-row { justify-content: center; }

/* Responsif */
@media (max-width: 960px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .about-grid, .order-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 520px; margin-inline: auto; width: calc(100% - 18px); }
  .about-photos { order: 2; }
}
@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--kakao); background: var(--oranye); cursor: pointer; padding: 0 11px;
  }
  .nav-toggle span { display: block; height: 3px; background: var(--kakao); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--krem); border-bottom: 2px solid var(--kakao); padding: 8px 20px 20px;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(52, 32, 24, .1); font-size: 1.1rem; }
  .nav-menu .btn { margin-top: 16px; }
  .perk-grid, .steps { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .brand { height: 38px; }
  .brand img { height: 90px; }
  .hero { padding: 32px 0 52px; }
  .cta-row .btn { flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .menu-grid { grid-template-columns: 1fr; gap: 22px; }
  .order-form { padding: 22px; }
  .about-photos img:last-child { margin-bottom: 24px; }
  .footer-bottom { flex-direction: column; }
}
