/* =============================================================
   Kedai Nyamix — "scrapbook camilan" redesign
   Bahasa visual: sticker cutout, polaroid, tiket sobek, notepad,
   garis putus-putus — bukan kartu kaca/gradasi generik.
   Palet: kuning gold hangat + tinta hitam lembut + krem
   ============================================================= */
:root {
  --yellow:        #f4b400;
  --yellow-deep:   #d99a00;
  --yellow-light:  #fdf1d4;
  --yellow-soft:   #fff8ea;

  --ink:           #2b2925;
  --ink-soft:      #4a4740;
  --muted:         #857f72;
  --muted-light:   #d8cdae;

  --paper:         #fffdf8;
  --white:         #ffffff;

  --font-display: 'Fredoka', 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link { position: absolute; left: -999px; top: auto; }
.skip-link:focus {
  left: 12px; top: 12px;
  background: var(--yellow); color: var(--ink);
  padding: 8px 14px; border-radius: 8px; z-index: 999;
}

section { padding: 96px 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 17px; }
p { line-height: 1.75; margin: 0; }

.doodle-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--yellow-deep);
  transform: rotate(-2deg);
  margin-bottom: 12px;
}

.section-head { max-width: 620px; margin: 0 auto 50px; text-align: center; }
.section-head p { color: var(--muted); font-size: 15.5px; margin-top: 12px; }

/* ---------- sticker buttons (offset hard shadow, no blur) ---------- */
.btn-sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-sticker:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.btn-sticker:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ink); }

.btn-sticker-yellow { background: var(--yellow); color: var(--ink); }
.btn-sticker-outline { background: var(--paper); color: var(--ink); }
.btn-sticker-dark {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 rgba(43,41,37,0.35);
}
.btn-sticker-dark:hover { box-shadow: 7px 7px 0 rgba(43,41,37,0.35); }
.btn-block { width: 100%; justify-content: center; }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  background: var(--paper);
  border-bottom: 3px dashed rgba(43,41,37,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  font-size: 17px;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.brand-text strong { color: var(--yellow-deep); }

.main-nav { display: flex; gap: 28px; }
.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 2px;
  border-bottom: 2px dashed transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover, .nav-link.active { border-color: var(--yellow-deep); color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2.5px solid var(--ink);
  background: var(--white);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   THUMB (photo w/ emoji fallback) — generic
   ============================================================= */
.thumb {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, var(--yellow-light), var(--yellow) 78%);
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.thumb::before { content: attr(data-emoji); font-size: 38%; line-height: 1; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- polaroid component ---------- */
.polaroid {
  position: relative;
  background: var(--white);
  padding: 10px 10px 34px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 5px 5px 0 rgba(43,41,37,0.16), 0 10px 22px rgba(43,41,37,0.10);
}
.polaroid .thumb { width: 100%; aspect-ratio: 1; border-radius: 6px; }
.polaroid .cap {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.3;
}
.polaroid .tape {
  position: absolute;
  top: -9px; left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 42px; height: 16px;
  background: repeating-linear-gradient(45deg, rgba(244,180,0,0.55) 0 6px, rgba(244,180,0,0.32) 6px 12px);
  border-radius: 3px;
}

/* =============================================================
   HERO
   ============================================================= */
.hero { padding: 100px 0 80px; position: relative; }

.ticker {
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--yellow);
  padding: 9px 0;
  margin-bottom: 50px;
}
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 24s linear infinite; }
.ticker-track span {
  display: inline-flex;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.6px;
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }

.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  display: block;
}
.underline-word { position: relative; display: inline-block; color: var(--yellow-deep); margin: 0 2px; }
.underline-word .squiggle { position: absolute; left: 0; top: 100%; width: 100%; height: 12px; margin-top: -6px; color: var(--yellow-deep); }

.hero .lead { color: var(--muted); font-size: 16px; max-width: 440px; margin: 20px 0 28px; }
.hero .lead em { color: var(--ink); font-style: normal; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 24px; color: var(--muted); font-size: 13.5px; }
.hero-note a { color: var(--yellow-deep); text-decoration: none; font-weight: 600; }

.hero-polaroids { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-polaroids .polaroid { width: 118px; }
.hero-polaroids .p1 { transform: rotate(-6deg); }
.hero-polaroids .p2 { transform: rotate(4deg); margin-top: 18px; }
.hero-polaroids .p3 { transform: rotate(-3deg); }

/* =============================================================
   ABOUT
   ============================================================= */
.about-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 66px;
}
.about-card p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; }
.about-card h2 { margin-bottom: 16px; }
.handwritten {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--yellow-deep) !important;
  position: relative;
  padding-left: 24px;
}
.handwritten::before { content: "✦"; position: absolute; left: 0; top: 0; }

.about-photo { width: 200px; margin: 0 auto; transform: rotate(4deg); }

.moment-row { position: relative; display: flex; justify-content: space-between; gap: 20px; }
.moment-row::before {
  content: "";
  position: absolute;
  top: 32px; left: 10%; right: 10%;
  border-top: 3px dashed var(--yellow-deep);
  z-index: 0;
}
.moment { position: relative; z-index: 1; flex: 1; text-align: center; }
.moment-badge {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--yellow);
  font-size: 25px;
  margin-bottom: 14px;
  box-shadow: 4px 4px 0 rgba(43,41,37,0.10);
}
.moment h3 { margin-bottom: 6px; font-size: 15.5px; }
.moment p { color: var(--muted); font-size: 13.5px; }

/* =============================================================
   MENU / GALERI
   ============================================================= */
.menu { background: var(--yellow-soft); }

.menu-filter { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 46px; }
.filter-btn {
  background: var(--white);
  border: 2.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.filter-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.filter-btn.active { background: var(--yellow); }

.menu-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 20px; }
.menu-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-card.hide { display: none; }
.menu-card:nth-child(odd) { transform: rotate(-2deg); }
.menu-card:nth-child(even) { transform: rotate(2deg); }
.menu-card:hover { transform: rotate(0deg) translateY(-6px) !important; }
.menu-card .cap { font-size: 12.5px; }

.menu-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 44px; }

/* =============================================================
   SPOTLIGHT — ticket stub
   ============================================================= */
.spotlight { padding: 16px 0 96px; }
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 rgba(43,41,37,0.18);
}
.ticket-photo { margin: 30px; aspect-ratio: 1; border-radius: 16px; border: 4px solid var(--white); }
.ticket-divider { position: relative; border-left: 3px dashed rgba(43,41,37,0.4); margin: 24px 0; }
.ticket-divider::before,
.ticket-divider::after {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  background: var(--paper);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
}
.ticket-divider::before { top: -12px; }
.ticket-divider::after { bottom: -12px; }
.ticket-copy { padding: 30px 34px 30px 8px; }
.ticket-copy .doodle-tag { color: var(--ink); opacity: 0.65; }
.ticket-copy h2 { margin: 4px 0 12px; }
.ticket-copy p { color: rgba(43,41,37,0.72); max-width: 400px; font-size: 15px; }
.ticket-copy .btn-sticker { margin-top: 22px; }

/* =============================================================
   WHY — vertical timeline
   ============================================================= */
.why { background: var(--paper); }
.why-list {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.why-list::before {
  content: "";
  position: absolute;
  top: 6px; bottom: 6px; left: 33px;
  border-left: 3px dashed var(--yellow-deep);
  z-index: 0;
}
.why-item { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 22px; }
.why-icon {
  flex-shrink: 0;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 25px;
  box-shadow: 4px 4px 0 rgba(43,41,37,0.12);
}
.why-text h3 { margin-bottom: 5px; }
.why-text p { color: var(--muted); font-size: 14.5px; }

/* =============================================================
   CONTACT
   ============================================================= */
.contact { background: var(--yellow-soft); }
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: start; margin-top: 10px; }

.chat-bubbles { display: flex; flex-direction: column; gap: 16px; }
.bubble {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 20px 20px 20px 4px;
  padding: 18px 22px;
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(43,41,37,0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bubble:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 rgba(43,41,37,0.16); }
.bubble-icon { font-size: 25px; flex-shrink: 0; }
.bubble-text { display: flex; flex-direction: column; }
.bubble .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.bubble strong { font-size: 15.5px; color: var(--ink); }

.order-slip {
  position: relative;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  padding: 36px 28px 26px;
  box-shadow: 6px 6px 0 rgba(43,41,37,0.14);
}
.order-slip h3 { margin-bottom: 20px; }
.slip-holes {
  position: absolute;
  top: -11px; left: 0; right: 0; height: 22px;
  background-image: radial-gradient(circle, var(--yellow-soft) 7px, transparent 7.5px);
  background-size: 32px 22px;
  background-position: 16px center;
  background-repeat: repeat-x;
}

.form-row { margin-bottom: 18px; }
.form-row label { display: block; color: var(--ink-soft); font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.form-row input,
.form-row textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px dashed var(--muted-light);
  border-radius: 0;
  padding: 9px 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row textarea:focus { outline: none; border-bottom-color: var(--yellow-deep); }
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--muted-light); }

.form-hint { min-height: 18px; color: #c85a5a; font-size: 13px; margin: -6px 0 14px; }
.form-hint.ok { color: var(--yellow-deep); }

/* =============================================================
   FOOTER
   ============================================================= */
.scallop {
  height: 18px;
  background:
    linear-gradient(135deg, var(--ink) 25%, transparent 25.5%) 0 0/18px 18px,
    linear-gradient(225deg, var(--ink) 25%, transparent 25.5%) 0 0/18px 18px,
    linear-gradient(315deg, var(--ink) 25%, transparent 25.5%) 9px 0/18px 18px,
    linear-gradient(45deg,  var(--ink) 25%, transparent 25.5%) 9px 0/18px 18px;
  background-color: var(--paper);
}

.site-footer { background: var(--ink); padding: 54px 0 26px; text-align: center; }
.site-footer .brand { justify-content: center; margin-bottom: 12px; }
.site-footer .brand-text { color: var(--white); }
.site-footer .brand-badge { background: var(--yellow); }
.footer-tag { color: var(--muted-light); font-size: 14px; margin-bottom: 26px; }

.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links a { color: var(--muted-light); text-decoration: none; font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: var(--yellow); }

.footer-socials { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.footer-socials a { color: var(--yellow); text-decoration: none; font-weight: 600; }
.footer-socials a:hover { text-decoration: underline; }

.fine { color: var(--muted); font-size: 12px; }

/* =============================================================
   FLOATING ELEMENTS
   ============================================================= */
.fab-whatsapp {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 25px;
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 400;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab-whatsapp:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }

.back-to-top {
  position: fixed;
  right: 22px; bottom: 86px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--ink);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 400;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* =============================================================
   REVEAL ANIMATION
   ============================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (min-width: 700px) {
  .hero-polaroids {
    position: relative;
    height: 380px;
    display: block;
  }
  .hero-polaroids .polaroid { position: absolute; width: 140px; }
  .hero-polaroids .p1 { top: 0; left: 6%; width: 160px; }
  .hero-polaroids .p2 { top: 40%; right: 0; width: 130px; margin-top: 0; }
  .hero-polaroids .p3 { bottom: 0; left: 26%; width: 120px; }
}

@media (max-width: 992px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .ticket { grid-template-columns: 1fr; text-align: center; }
  .ticket-photo { margin: 30px auto 0; max-width: 200px; }
  .ticket-divider { display: none; }
  .ticket-copy { padding: 24px 30px 30px; }
  .ticket-copy p { margin: 0 auto; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  section { padding: 70px 0; }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 3px dashed rgba(43,41,37,0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav a { padding: 16px 24px; border-top: 1px dashed rgba(43,41,37,0.15); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 110px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-polaroids { order: -1; margin-bottom: 20px; }

  .about-wrap { grid-template-columns: 1fr; text-align: center; gap: 26px; }
  .about-photo { order: -1; }

  .moment-row { flex-direction: column; gap: 24px; }
  .moment-row::before { display: none; }

  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .order-slip { padding: 30px 22px 22px; }
}

@media (max-width: 420px) {
  .menu-grid { gap: 26px 14px; }
  .hero h1 { font-size: 30px; }
}
