/* =========================================================
   Kedai Nasi Goreng Tiga Wajan — earth tone palette
   Display: system serif  |  Text: system humanist sans
   ========================================================= */

:root {
  --cream:      #F6EFE3;
  --cream-2:    #EFE4D2;
  --paper:      #FCF8F1;
  --soil:       #241A12;
  --bark:       #4A3728;
  --bark-soft:  #6B543F;
  --clay:       #8C3A24;
  --ember:      #C2622C;
  --amber:      #DDA23F;
  --palm:       #4E5D38;
  --palm-soft:  #7A8A5C;
  --line:       #DCCDB6;
  --line-dark:  #3A2A1D;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --gut: clamp(1.15rem, 4vw, 2.5rem);
  --r: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--soil);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--clay); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sr-note {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--soil); color: var(--cream);
  padding: .7rem 1.1rem; z-index: 99;
}
.skip:focus { left: 0; top: 0; }

:focus-visible {
  outline: 2.5px solid var(--ember);
  outline-offset: 3px;
}

.eyebrow {
  font-size: .74rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
  margin: 0 0 .9rem;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block;
  font: inherit;
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .015em;
  padding: .82rem 1.5rem;
  border-radius: 100px;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn-solid { background: var(--clay); color: var(--paper); border-color: var(--clay); }
.btn-solid:hover { background: #74301B; border-color: #74301B; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--bark); border-color: #C6B195; }
.btn-ghost:hover { border-color: var(--bark); background: rgba(74,55,40,.06); }
.btn-block { width: 100%; }

/* ---------------- header ---------------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,239,227,.95);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 72px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--soil); margin-right: auto;
}
.brand-mark { width: 34px; height: 34px; color: var(--clay); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--serif); font-size: 1.24rem; font-weight: 600; letter-spacing: -.01em;
}
.brand-text em {
  font-style: normal; font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--bark-soft); margin-top: .22rem;
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; color: var(--bark);
  font-size: .93rem; font-weight: 500;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--clay); }
.site-nav a.is-active { color: var(--clay); border-bottom-color: var(--ember); }
.nav-cta { padding: .62rem 1.15rem; font-size: .87rem; border-bottom: 0; }
.nav-cta:hover { color: var(--paper); }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: transparent; border: 1.5px solid #C6B195; color: var(--bark);
  font: inherit; font-size: .85rem; font-weight: 600;
  padding: .5rem .9rem; border-radius: 100px; cursor: pointer;
}
.bars { display: grid; gap: 3.5px; }
.bars i { display: block; width: 16px; height: 2px; background: currentColor; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: .4rem;
    display: none; padding: .2rem 0 1.2rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav ul a { display: block; padding: .8rem 0; font-size: 1.02rem; }
  .site-nav a.is-active { border-bottom-color: transparent; }
  .nav-cta { margin-top: .8rem; }
}

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  padding: clamp(2.4rem, 6vw, 4.6rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(120% 80% at 82% 16%, rgba(221,162,63,.32), transparent 58%),
    radial-gradient(90% 70% at 10% 96%, rgba(140,58,36,.15), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(74,55,40,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .55; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.12fr .88fr;
  gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5.8vw, 3.95rem); margin: 0 0 1.1rem; }
.hero h1 .ink { color: var(--clay); font-style: italic; }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--bark); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.7rem 0 1.1rem; }
.hero-note { font-size: .84rem; color: var(--bark-soft); }
.hero-art svg { width: 100%; height: auto; display: block; }

.steam path { animation: rise 4.2s ease-in-out infinite; }
.steam .s2 { animation-delay: .5s; }
.steam .s3 { animation-delay: 1.1s; }
@keyframes rise {
  0%, 100% { opacity: .3; transform: translateY(5px); }
  50%      { opacity: .85; transform: translateY(-6px); }
}
.flames { animation: flicker 2.4s ease-in-out infinite; transform-origin: 160px 288px; }
@keyframes flicker {
  0%, 100% { transform: scaleY(1) scaleX(1); opacity: .9; }
  45%      { transform: scaleY(1.1) scaleX(.95); opacity: 1; }
}

.stat-strip {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(2rem, 5vw, 3.2rem) 0 0;
  border-top: 1px solid rgba(74,55,40,.22);
  padding-top: 1.3rem; gap: 1rem;
}
.stat-strip dt {
  font-size: .71rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--bark-soft); margin-bottom: .3rem;
}
.stat-strip dd {
  margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--clay); line-height: 1;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin-inline: auto; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
}

/* ---------------- section shell ---------------- */
.section { padding: clamp(3.2rem, 8vw, 6.2rem) 0; }
.section-head { max-width: 44rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head-left { text-align: left; margin-inline: 0; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .8rem; }
.section-intro { color: var(--bark); font-size: 1.02rem; }

/* ---------------- menu ---------------- */
.section-menu { background: var(--paper); border-block: 1px solid var(--line); }

.filters {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 2.1rem;
}
.filter-row { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; padding: .38rem 0; }
.filter-label {
  font-size: .71rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 700; color: var(--bark-soft); min-width: 4.4rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  font: inherit; font-size: .86rem; font-weight: 500;
  padding: .38rem .85rem; border-radius: 100px; cursor: pointer;
  background: transparent; color: var(--bark);
  border: 1.4px solid #D2C0A6;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.chip:hover { border-color: var(--bark-soft); }
.chip.is-on { background: var(--bark); border-color: var(--bark); color: var(--paper); }
.filter-count {
  margin: .75rem 0 0; padding-top: .7rem;
  border-top: 1px dashed var(--line);
  font-size: .83rem; color: var(--bark-soft);
}

.dish-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.dish-card {
  display: flex; gap: 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
  transition: border-color .16s ease, transform .16s ease;
}
.dish-card:hover { border-color: #C09A6E; transform: translateY(-2px); }
.dish-card[hidden] { display: none; }

.dish-art { flex: none; width: 74px; padding-top: .3rem; }
.dish { width: 74px; height: auto; display: block; }
.p-shadow { fill: rgba(74,55,40,.12); }
.p-rim { fill: #C6B9A4; }
.p-rim-top { fill: #E4DAC7; }
.p-rice { fill: var(--rice, #E3C48B); }
.p-egg { fill: #FBF5E8; }
.p-yolk { fill: #E9A33C; }
.p-garnish { fill: var(--palm-soft); }
.p-seed { fill: #A93F26; }

.dish-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .8rem; margin-bottom: .35rem;
}
.dish-card h3 { font-size: 1.13rem; }
.price {
  margin: 0; flex: none;
  font-family: var(--serif); font-size: 1.02rem; color: var(--clay); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dish-desc { font-size: .91rem; color: var(--bark); margin-bottom: .6rem; }

.heat {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--bark-soft); margin: 0 0 .55rem;
}
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 7px; height: 7px; border-radius: 50%; background: #DCCDB6; display: block; }
.pips i.on { background: var(--ember); }

.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.tags span {
  font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700;
  color: var(--palm); background: rgba(78,93,56,.12);
  padding: .22rem .5rem; border-radius: 3px;
}

.empty-state {
  border: 1px dashed #C6B195; border-radius: 10px;
  padding: 1.7rem 1.4rem; text-align: center; color: var(--bark);
  background: var(--cream); margin: 0;
}

.sides {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  border-top: 2px solid var(--line-dark);
  padding-top: 1.6rem;
  max-width: 640px;
}
.sides h3 { font-size: 1.35rem; margin-bottom: .9rem; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .42rem 0; font-size: .95rem; color: var(--bark);
}
.side-list .dots {
  flex: 1; height: 1px;
  background-image: linear-gradient(to right, var(--line) 45%, transparent 45%);
  background-size: 7px 1px; background-repeat: repeat-x;
  transform: translateY(-3px);
}
.side-list li span:last-child { color: var(--clay); font-weight: 600; white-space: nowrap; }

@media (max-width: 520px) {
  .dish-card { flex-direction: column; gap: .6rem; }
  .dish-art, .dish { width: 62px; }
  .filter-label { min-width: 100%; }
}

/* ---------------- story ---------------- */
.section-story { background: var(--soil); color: #EADFCC; }
.section-story .eyebrow { color: var(--amber); }
.story-grid {
  display: grid; grid-template-columns: 1.35fr .65fr;
  gap: clamp(1.8rem, 5vw, 4rem); align-items: start;
}
.story-main h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); color: var(--paper); margin-bottom: 1.2rem; }
.story-main p { color: #D6C7B0; }
.pull {
  margin: 0; padding: 1.6rem 1.5rem;
  border-left: 3px solid var(--ember);
  background: rgba(255,255,255,.05);
  border-radius: 0 8px 8px 0;
}
.pull blockquote { margin: 0; }
.pull blockquote p {
  font-family: var(--serif); font-size: 1.28rem; line-height: 1.42;
  color: var(--paper); font-style: italic;
}
.pull figcaption { margin-top: 1rem; font-size: .81rem; color: var(--amber); letter-spacing: .04em; }

.story-facts {
  grid-column: 1 / -1;
  list-style: none; margin: clamp(1.6rem, 4vw, 2.6rem) 0 0; padding: 1.6rem 0 0;
  border-top: 1px solid rgba(234,223,204,.2);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.story-facts li { display: flex; flex-direction: column; gap: .3rem; }
.story-facts strong {
  font-family: var(--serif); font-size: 1.85rem; color: var(--amber); font-weight: 600; line-height: 1;
}
.story-facts span { font-size: .85rem; color: #C2B199; line-height: 1.45; }

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-facts { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- method ---------------- */
.section-method { background: var(--cream-2); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
.steps li { background: var(--paper); padding: clamp(1.4rem, 3vw, 2.1rem); }
.step-no {
  font-family: var(--serif); font-size: 2.4rem; line-height: 1;
  color: #E0CDB2; margin: 0 0 .4rem;
}
.steps h3 { font-size: 1.2rem; margin-bottom: .55rem; color: var(--clay); }
.steps li p:last-child { font-size: .94rem; color: var(--bark); }

@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------------- faq ---------------- */
.section-faq { background: var(--paper); border-block: 1px solid var(--line); }
.faq-wrap {
  display: grid; grid-template-columns: .78fr 1.22fr;
  gap: clamp(1.4rem, 4vw, 3.4rem); align-items: start;
}
.faq-wrap .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.05rem 2.2rem 1.05rem 0;
  position: relative;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  color: var(--soil);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--clay); }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ember); border-bottom: 2px solid var(--ember);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-body { padding: 0 1.5rem 1.2rem 0; }
.faq-body p { font-size: .95rem; color: var(--bark); }

@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------------- visit ---------------- */
.section-visit { background: var(--cream); }
.visit-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); align-items: start; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.3rem, 3vw, 1.75rem);
}
.card h3 { font-size: 1.26rem; margin-bottom: 1rem; color: var(--clay); }
.card-note { font-size: .82rem; color: var(--bark-soft); margin-top: .9rem; }
.card-note-top { margin-top: -.4rem; margin-bottom: 1.1rem; }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; font-size: .93rem; color: var(--bark);
  border-bottom: 1px dashed var(--line);
}
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { font-variant-numeric: tabular-nums; color: var(--soil); font-weight: 600; }
.hours li.is-today span { color: var(--clay); font-weight: 700; }

.card-find address { font-style: normal; font-size: .95rem; color: var(--bark); line-height: 1.65; }
.contact-lines { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.contact-lines li { display: flex; align-items: center; gap: .6rem; padding: .32rem 0; font-size: .93rem; }
.contact-lines .ico { color: var(--ember); width: 1.1rem; }
.contact-lines a { color: var(--clay); text-decoration: none; border-bottom: 1px solid rgba(140,58,36,.35); }
.contact-lines a:hover { border-bottom-color: var(--clay); }

.field { margin-bottom: .85rem; }
.field-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: .7rem; }
label {
  display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--bark-soft); margin-bottom: .32rem;
}
input, textarea {
  width: 100%; font: inherit; font-size: .93rem;
  padding: .6rem .7rem;
  background: var(--cream);
  border: 1.4px solid var(--line);
  border-radius: var(--r);
  color: var(--soil);
}
input:focus, textarea:focus { border-color: var(--ember); outline: none; background: #fff; }
textarea { resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--clay); background: #FBEDE8; }

.form-status { margin: .85rem 0 0; font-size: .87rem; min-height: 1.2em; color: var(--palm); font-weight: 600; }
.form-status.is-error { color: var(--clay); }

@media (max-width: 940px) {
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .card-form { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---------------- footer ---------------- */
.site-foot { background: var(--soil); color: #C2B199; padding: clamp(2.2rem, 5vw, 3.2rem) 0; }
.foot-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 1.8rem; align-items: start; }
.foot-brand { display: flex; gap: .8rem; align-items: flex-start; }
.foot-brand .brand-mark { width: 32px; height: 32px; color: var(--amber); flex: none; }
.foot-brand p { font-size: .89rem; line-height: 1.55; }
.foot-brand strong { color: var(--paper); font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .42rem; }
.foot-nav a { color: #D6C7B0; text-decoration: none; font-size: .89rem; }
.foot-nav a:hover { color: var(--amber); }
.foot-legal { font-size: .8rem; line-height: 1.6; color: #9C8B75; }

@media (max-width: 780px) { .foot-inner { grid-template-columns: 1fr; } }
