/* ==========================================================================
   Sop Duren Cheli — link in bio
   Palette sampled directly from assets/Logo-SopDurenCheli.png
   ========================================================================== */

:root {
  /* --- sampled from the logo --- */
  --green-ink:    #122F1D;  /* dark green outline / all body text        */
  --green-leaf:   #BCCB32;  /* ribbon green                              */
  --yellow:       #FCC008;  /* badge yellow                              */
  --yellow-bright:#FCE300;  /* durian flesh highlight                    */
  --orange:       #FF9A2E;  /* badge shading                             */
  --cream:        #FFFCF5;  /* lettering cream — also the card surface   */

  /* --- derived tints --- */
  --sand:         #FFF3D4;
  --leaf-soft:    #EDF3C4;
  --ink-soft:     rgba(18, 47, 29, .62);
  --line:         var(--green-ink);

  --radius:   20px;
  --radius-s: 14px;
  --drop:     0 4px 0 var(--green-ink);
  --drop-sm:  0 3px 0 var(--green-ink);

  --font-head: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', 'Baloo 2', cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--green-ink);
  background-color: var(--sand);
  /* soft tropical light — cheap to paint, no image request */
  background-image:
    radial-gradient(90% 55% at 50% -8%,  rgba(252,227,0,.85) 0%, rgba(252,192,8,0) 62%),
    radial-gradient(70% 40% at 108% 22%, rgba(188,203,50,.42) 0%, rgba(188,203,50,0) 60%),
    radial-gradient(70% 40% at -8% 62%,  rgba(255,154,46,.28) 0%, rgba(255,154,46,0) 58%);
  background-attachment: fixed;
  line-height: 1.5;
}

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Mobile-first column. 430px is the widest common phone; on desktop the
   same column just centres itself. */
.page {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  padding: 0 18px calc(28px + env(safe-area-inset-bottom));
}


/* ═════════════ HERO ═════════════ */

.hero {
  position: relative;
  text-align: center;
  padding: 22px 0 26px;
}

.hero__logo {
  width: min(66vw, 236px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 8px 14px rgba(18,47,29,.18));
}

.hero__tagline {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--green-ink);
  margin: 6px 0 12px;
}

.hero__location,
.chip--hours {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.hero__location {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

/* the "price tag chip" shape, reused for hours + prices + tags */
.chip {
  font-family: var(--font-head);
  font-weight: 700;
  background: var(--cream);
  border: 2.5px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--drop-sm);
  padding: 5px 15px;
  font-size: .92rem;
  white-space: nowrap;
}

.chip--hours { background: var(--yellow); }


/* ═════════════ SECTIONS ═════════════ */

.section { margin-bottom: 30px; }

.section__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.32rem;
  line-height: 1.2;
  margin: 0 0 13px;
  text-align: center;
}


/* ═════════════ BUTTONS ═════════════ */

/* Sticker construction: hard dark-green outline + solid offset shadow,
   echoing how the logo badge is built. Presses down on tap. */
.btn {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-ink);
  text-decoration: none;
  background: var(--cream);
  border: 2.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--drop);
  padding: 13px 14px;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease;
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--green-ink);
}

.btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Two equal-weight buttons side by side (menu / gerobak lain) */
.twin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  align-items: stretch;
}

.twin .btn {
  flex-direction: column;
  gap: 4px;
  text-align: center;
  padding: 15px 9px 12px;
  min-height: 118px;
  justify-content: center;
}

.btn--primary   { background: var(--yellow); }
.btn--secondary { background: var(--leaf-soft); }

.btn__glyph {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn__label {
  font-size: .97rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.btn__caret {
  width: 20px; height: 20px;
  fill: currentColor;
  transition: transform .18s ease;
  opacity: .75;
}

.btn[aria-expanded="true"] .btn__caret { transform: rotate(180deg); }

/* full-width row button: icon badge + two lines of text */
.btn--wide { text-align: left; }

.btn__icon {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 2.5px solid var(--line);
  background: var(--yellow);
  color: var(--green-ink);
}

.btn__icon svg { width: 21px; height: 21px; fill: currentColor; }

.btn__icon--maps  { background: var(--orange); }
.btn__icon--phone { background: var(--green-leaf); }

.btn__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.btn__text strong { font-weight: 700; font-size: 1.02rem; }

.btn__text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .78rem;
  color: var(--ink-soft);
  margin-top: 1px;
}

.stack { display: grid; gap: 11px; }

.order-note {
  margin: 10px 2px 0;
  font-size: .76rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
}

/* Order channel icon badges carry the platform's own colour so the button
   is recognisable at a glance; everything around it stays on brand. */
.btn__icon--platform { color: #fff; }
.btn__icon--platform svg { width: 22px; height: 22px; }


/* ═════════════ ACCORDION PANELS ═════════════ */

.panel {
  margin-top: 11px;
  background: var(--cream);
  border: 2.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--drop);
  padding: 15px 14px;
  animation: drop .18s ease;
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
  .btn { transition: none; }
}

.panel__lead {
  margin: 0 0 12px;
  font-size: .87rem;
  color: var(--ink-soft);
}

.panel__foot {
  margin: 14px 0 0;
  font-size: .75rem;
  color: var(--ink-soft);
  text-align: center;
}


/* ═════════════ MENU ═════════════ */

.menu-cat { margin-bottom: 20px; }
.menu-cat:last-child { margin-bottom: 0; }

.menu-cat__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* leafy rule to the right of each category name */
.menu-cat__title::after {
  content: '';
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--green-leaf);
}

/* photo cards — only the Sop Duren category */
.dish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dish {
  position: relative;
  border: 2.5px solid var(--line);
  border-radius: var(--radius-s);
  /* matches the flattened background baked into the photo files */
  background: var(--cream);
  overflow: hidden;
  box-shadow: var(--drop-sm);
}

/* Source files are pre-cropped square around the bowl, so this just scales. */
.dish__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.dish__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px 8px;
  border-top: 2.5px solid var(--line);
  background: var(--sand);
}

.dish__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .87rem;
  line-height: 1.1;
}

/* text rows — everything that has no photo */
.row-list { list-style: none; margin: 0; padding: 0; }

.row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1.5px dashed rgba(18,47,29,.2);
}

.row:last-child { border-bottom: 0; }

.row__name {
  font-weight: 500;
  font-size: .92rem;
  line-height: 1.25;
}

.row__note {
  font-size: .74rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* dotted leader so name and price stay visually connected */
.row__fill {
  flex: 1;
  min-width: 12px;
  border-bottom: 1.5px dotted rgba(18,47,29,.28);
  transform: translateY(-3px);
}

.price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .86rem;
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 1px 10px;
  white-space: nowrap;
  flex: none;
}

.price--sm { font-size: .8rem; padding: 0 8px; }

/* badges */
.tag {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
  flex: none;
}

.tag--best { background: var(--orange); }
.tag--fav  { background: var(--green-leaf); }
.tag--rec  { background: var(--cream); }

/* badge floating on a photo card */
.dish .tag {
  position: absolute;
  top: 8px; left: 8px;
  box-shadow: 0 2px 0 var(--green-ink);
}


/* ═════════════ TENANTS ═════════════ */

/* Single column, not two. Each stall now carries a description line, and at
   two columns the text well is ~110px wide — descriptions wrapped to four
   lines and long names like "Soto Mie Daging" broke mid-phrase. */
.tenants {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tenant {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--sand);
  border: 2.5px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: var(--drop-sm);
  padding: 9px 12px;
  min-width: 0;
}

.tenant__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
}

/* used when a real tenant photo is added to config.js */
.tenant__photo {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 9px;
  border: 2px solid var(--line);
  object-fit: cover;
}

.tenant__text { min-width: 0; }

/* All three stack — without display:block the food name and stall name run
   together on one line when a `name` is filled in. */
.tenant__food {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.2;
}

.tenant__name {
  display: block;
  font-size: .7rem;
  color: var(--ink-soft);
  line-height: 1.25;
}

.tenant__desc {
  display: block;
  font-size: .73rem;
  color: var(--ink-soft);
  line-height: 1.3;
  margin-top: 1px;
}


/* ═════════════ SEWA GEROBAK ═════════════ */

/* deliberately quiet — a note, not a call to action competing with ordering */
.sewa {
  margin-top: 16px;
  text-align: center;
  border-top: 2px dashed rgba(18,47,29,.22);
  padding-top: 14px;
}

.sewa__line {
  margin: 0 0 5px;
  font-size: .85rem;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* A quiet outlined pill: big enough to tap (44px), but with no drop shadow
   so it never competes with the order buttons above it. */
.sewa__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--green-ink);
  text-decoration: none;
  background: rgba(255, 252, 245, .7);
  border: 2.5px solid var(--green-leaf);
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s ease;
}

.sewa__link:active { background: var(--green-leaf); }

.sewa__link:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }


/* ═════════════ ADDRESS CARD ═════════════ */

.card {
  background: var(--cream);
  border: 2.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--drop);
  padding: 14px 15px;
}

.card--address { margin-bottom: 11px; text-align: center; }

.card__eyebrow {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 4px;
}

.card__address {
  font-style: normal;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}


/* ═════════════ SOCIAL ═════════════ */

.social .btn__icon { width: 44px; height: 44px; border-radius: 14px; }
.social .btn__icon svg { width: 24px; height: 24px; }

.social__handle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .74rem;
  color: var(--ink-soft);
}


/* ═════════════ FOOTER ═════════════ */

.footer {
  text-align: center;
  padding-top: 6px;
}

.footer__line {
  font-family: var(--font-hand);
  font-size: 1.42rem;
  line-height: 1.2;
  margin: 0 0 5px;
}

/* Second, quieter line under the closing headline. Set in the body face, not
   the script one, so the two lines read as headline + invitation rather than
   two competing flourishes. */
.footer__sub {
  font-size: .84rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 9px;
  /* balance keeps it from breaking as "…ke Sop / Duren Cheli" and splitting
     the shop name across two lines on narrow phones */
  text-wrap: balance;
}

/* Caveat is a handwriting face — its uppercase forms are narrow and slanted,
   so a long all-caps line set in it is hard to read. Long lines switch to the
   same rounded sans the rest of the page uses for bold statements. */
.footer__line--long {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .98rem;
  line-height: 1.3;
  letter-spacing: .01em;
}

.footer__copy {
  font-size: .74rem;
  color: var(--ink-soft);
  margin: 0;
}


/* ═════════════ DRAFT / TO-CONFIRM MARKERS ═════════════ */
/* Deliberately loud and off-palette. These disappear entirely when
   SHOW_TODOS is set to false in config.js. */

.draft-banner {
  background: #FF2D9B;
  color: #fff;
  font-family: var(--font-body);
  font-size: .78rem;
  line-height: 1.45;
  padding: 11px 16px;
  text-align: center;
}

.draft-banner strong {
  display: block;
  font-size: .86rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.todo {
  display: flex;
  gap: 8px;
  background: #FFE3F2;
  border: 2px dashed #FF2D9B;
  border-radius: 12px;
  color: #A1005C;
  font-family: var(--font-body);
  font-size: .74rem;
  line-height: 1.45;
  padding: 9px 11px;
  margin: 11px 0;
  text-align: left;
}

.todo::before {
  content: 'TO CONFIRM';
  font-weight: 600;
  font-size: .6rem;
  letter-spacing: .07em;
  flex: none;
  color: #FF2D9B;
  padding-top: 2px;
}


/* ═════════════ WIDER SCREENS ═════════════ */
/* The column stays a column — this page is a phone page first. Desktop
   just gets a little more air and a slightly larger logo. */

@media (min-width: 620px) {
  .page { max-width: 460px; padding-bottom: 40px; }
  .hero { padding-top: 34px; }
  .hero__logo { width: 260px; }
}
