/* ===== Tempong Nusantara brand tokens ===== */
:root {
  /* Sambal palette — chili red anchored, warm earth supporting */
  --sambal: #C8281D;
  --sambal-deep: #8E1B12;
  --sambal-ink: #5A1209;
  --kunyit: #E5A23A;            /* turmeric */
  --kunyit-soft: #F1C77B;
  --cream: #FBF6E9;
  --cream-deep: #F3E7C8;
  --cream-warm: #F7EBD0;
  --arang: #1C140E;             /* charred wood */
  --arang-soft: #2E2218;
  --daun: #6E8B3A;              /* lalapan */
  --ink: #2A1B12;
  --ink-soft: #5A4634;
  --line: rgba(28,20,14,0.12);
  --line-strong: rgba(28,20,14,0.22);

  --font-display: 'Caprasimo', 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(28,20,14,0.06), 0 2px 6px rgba(28,20,14,0.05);
  --shadow: 0 6px 18px rgba(28,20,14,0.10), 0 2px 6px rgba(28,20,14,0.06);
  --shadow-lg: 0 18px 50px rgba(28,20,14,0.18), 0 4px 12px rgba(28,20,14,0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Subtle paper grain for the whole page */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(28,20,14,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 1;
  opacity: 0.6;
}

/* Type helpers */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 0.98; }
.hand { font-family: var(--font-hand); font-weight: 600; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--sambal);
}
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--ink-soft); }

/* Layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

section { padding: 72px 0; position: relative; z-index: 2; }
@media (max-width: 720px) { section { padding: 48px 0; } }

/* Page-end clearance on mobile so the fixed WhatsApp FAB (bottom-right ~74px tall)
   never rests on top of the last card/content on any route. */
@media (max-width: 720px) {
  main { padding-bottom: 84px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sambal); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sambal-deep); box-shadow: var(--shadow); }
.btn-dark { background: var(--arang); color: var(--cream); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--arang); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--arang); background: var(--cream-warm); }
.btn-kunyit { background: var(--kunyit); color: var(--arang); }
.btn-kunyit:hover { background: #d8902c; }
.btn-sm { padding: 9px 14px; font-size: 13px; min-height: 44px; }

/* Card */
.card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Pill / tags */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--cream-deep); color: var(--ink);
  font-size: 12px; font-weight: 600;
}
.pill-sambal { background: var(--sambal); color: var(--cream); }
.pill-kunyit { background: var(--kunyit); color: var(--arang); }
.pill-daun { background: var(--daun); color: var(--cream); }
.pill-outline { background: transparent; border: 1px solid var(--line-strong); }

/* Spice meter dots */
.spice { display: inline-flex; gap: 3px; }
.spice span { width: 7px; height: 7px; border-radius: 999px; background: var(--line-strong); }
.spice span.on { background: var(--sambal); }

/* Section heading */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); margin: 6px 0 0; letter-spacing: -0.015em; line-height: 1.0; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--ink-soft); }
.input, .select, .textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--sambal); box-shadow: 0 0 0 3px rgba(200,40,29,0.15);
}
.textarea { min-height: 100px; resize: vertical; }

/* Food photo placeholder — stylized */
.foto {
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(28,20,14,0.15), transparent 60%),
    linear-gradient(135deg, var(--cream-deep), var(--kunyit-soft));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.foto.dark {
  background:
    radial-gradient(circle at 30% 30%, rgba(229,162,58,0.25), transparent 60%),
    linear-gradient(135deg, var(--arang-soft), var(--arang));
  color: var(--cream);
}
.foto.sambal {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,200,150,0.4), transparent 55%),
    linear-gradient(135deg, var(--sambal), var(--sambal-deep));
  color: var(--cream);
}
.foto.daun {
  background: linear-gradient(135deg, var(--daun), #4d6622);
  color: var(--cream);
}
.foto .foto-label {
  position: absolute; bottom: 10px; left: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  opacity: 0.55; font-family: var(--font-body);
}

/* Divider scribble */
.scribble {
  display: block; height: 12px; width: 80px; color: var(--sambal);
}

/* Breadcrumb */
.crumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.crumb a:hover { color: var(--sambal); }
.crumb span { margin: 0 8px; opacity: 0.5; }

/* Footer */
footer { background: var(--arang); color: var(--cream); position: relative; z-index: 2; padding: 56px 0 28px; }
footer a:hover { color: var(--kunyit); }
/* Extra bottom clearance on mobile so the fixed WhatsApp FAB never sits over footer text */
@media (max-width: 720px) { footer { padding-bottom: 96px; } }

/* Sticky WA button (mobile) */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}
.wa-fab svg { width: 28px; height: 28px; }

/* Marquee */
.marquee { overflow: hidden; background: var(--sambal); color: var(--cream); padding: 10px 0; font-weight: 600; letter-spacing: 0.04em; }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; animation: marq 28s linear infinite; }
.marquee-track > span { display: inline-flex; align-items: center; gap: 16px; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .5s ease both; }

/* Hide scrollbars when not needed */
.scroll-x { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }

/* Generic grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
