/* Desserts by Bella: page CSS on top of system.css (the kit). Brand extras from PROMPT.md:
   dusty rose #D9778B and warm gold #C59B27 as highlights, never as a second button colour. */
:root { --rose: #d9778b; --rose-ink: #a8475b; --gold: #c59b27; --gold-ink: #8a6a12; --wa: #15803d; }

/* the WhatsApp mark inside buttons and links */
.wa-ic { width: 18px; height: 18px; flex: none; }
.btn .wa-ic { margin-right: 2px; }

/* BM / EN toggle */
.lang { display: inline-flex; flex: none; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
@media (max-width: 1023px) { .lang { margin-left: auto; } }
.lang__btn { min-width: 44px; height: 40px; border: 0; border-radius: 999px; background: none; color: var(--muted);
  font: 600 13px/1 var(--font-text); letter-spacing: .04em; cursor: pointer; transition: background var(--dur, .2s), color var(--dur, .2s); }
.lang__btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang__btn:hover:not([aria-pressed="true"]) { color: var(--ink); }

/* hero: the rating line in gold */
.rating-badge { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4) !important; font-size: var(--t-small); color: var(--ink); }
.rating-badge svg { width: 18px; height: 18px; color: var(--gold); }
.rating-badge b { font-weight: 700; }
.hero--place .btn-row { gap: var(--s-5); }

/* photo-chapters: the chapter titles in the display face */
#kenapa .mo-ph__ch h3 { font-family: var(--font-display); font-weight: 400; }

/* gallery */
.gal .section-head--row { margin-bottom: var(--s-5); }
.gal .section-head--row > p { font-size: var(--t-body); max-width: 40ch; }
.filter { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filter__btn { min-height: 44px; padding: 0 var(--s-5); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg);
  color: var(--ink); font: 500 var(--t-small)/1 var(--font-text); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.filter__btn:hover { border-color: var(--rose); }
.filter__btn:active { transform: translateY(1px); }
.filter__btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cakes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--gutter); }
.cakes:empty { display: none; }
.cake { display: flex; flex-direction: column; min-width: 0; transition: transform .25s var(--ease, ease); }
.cake[hidden] { display: none; }
.cake:hover { transform: translateY(-2px); }
.cake__pic { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-sm); background: var(--p-surface); }
.cake__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease, ease); }
.cake:hover .cake__pic img { transform: scale(1.03); }
.cake__body { display: flex; flex-direction: column; gap: 6px; padding-top: var(--s-3); flex: 1; }
.cake__lead { align-self: start; font: 600 13px/1.3 var(--font-text); letter-spacing: .01em; color: var(--rose-ink); }
.cake__name { font: 400 20px/1.3 var(--font-display); margin: 0; }
.cake__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--t-small); color: var(--muted); margin: 0; }
.cake__meta > span:first-child { color: var(--ink); font-weight: 600; }
.cake__wa { margin-top: auto; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px;
  color: var(--wa); font-weight: 600; font-size: var(--t-small); text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 4px; transition: text-decoration-color .2s; }
.cake__wa:hover { text-decoration-color: currentColor; }

/* order builder */
.order .section-head { margin-bottom: var(--s-6); }
.order__grid { row-gap: var(--s-6); }
.order__form { display: grid; gap: var(--s-5); }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend { font-weight: 600; font-size: var(--t-small); margin-bottom: var(--s-3); padding: 0; }
.opt__row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--bg); font-size: var(--t-small); font-weight: 500; transition: border-color .2s, background .2s, transform .15s; }
.chip:hover > span { border-color: var(--rose); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.chip:active > span { transform: translateY(1px); }
.chip--card > span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-width: 128px; padding-block: var(--s-3); }
.chip--card small { font-size: 12px; font-weight: 400; opacity: .8; }
.order__two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.order__sum { background: var(--p-surface); border-radius: var(--r-md); padding: var(--s-6); display: grid; gap: var(--s-4); align-content: start; }
.bubble { position: relative; background: #fff; border-radius: 4px var(--r-md) var(--r-md) var(--r-md); padding: var(--s-4) var(--s-5);
  box-shadow: 0 1px 0 color-mix(in oklab, var(--ink) 10%, transparent); }
.bubble pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 400 15px/1.55 var(--font-text); color: var(--ink); }
.order__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: var(--s-4); }
.order__total strong { font: 600 var(--t-lead)/1.2 var(--font-text); font-variant-numeric: tabular-nums; }
.order__send { width: 100%; justify-content: center; }

/* reviews */
.review__text { display: grid; gap: var(--s-5); align-content: start; justify-items: start; }
.review__text h2 { max-width: 16ch; }
.score { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: var(--s-4); row-gap: 4px; }
.score__num { grid-row: span 2; font: 400 var(--t-h2)/1 var(--font-display); letter-spacing: -0.02em; }
.score__stars { display: inline-flex; gap: 2px; color: var(--gold); }
.score__stars svg { width: 22px; height: 22px; }
.score__count { font-size: var(--t-small); color: var(--muted); }
.review__lead { font-size: var(--t-lead); line-height: 1.55; max-width: 44ch; }

/* location: the address set large (the one type moment) */
.type-moment { margin: var(--s-4) 0 var(--s-6); font: var(--display-weight) clamp(40px, 5vw, 72px)/1.04 var(--font-display); letter-spacing: -0.03em; }
.type-moment a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .12em; transition: text-decoration-color .25s; }
.type-moment a:hover { text-decoration-color: var(--rose); }

.visit__addr { font-style: normal; font-size: 20px; line-height: 1.5; }
#lokasi .rows__value { white-space: normal; max-width: 26ch; }

/* the closing band: espresso, the brand's own dark */
.footer--band { --bg: #2c1e16; --surface: #392b23; --ink: #fffdf9; --muted: #cbbfb6; --line: rgba(255,253,249,.16); --line-strong: rgba(255,253,249,.32);
  background: var(--bg); color: var(--ink); }
.footer--band .close__word { font-size: clamp(40px, 8.4vw, 120px); line-height: 1.12; padding-bottom: .08em; letter-spacing: -0.03em; color: var(--rose); }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.link-plain { color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.link-plain:hover { text-decoration-color: currentColor; }

@media (max-width: 1023px) {
  .cakes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order__grid > * { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .lang { margin-right: 0; }
  .cakes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-3); }
  .cake__pic { aspect-ratio: 1 / 1; }
  .cake__name { font-size: 17px; }
  .cake__lead { font-size: 12px; }
  .cake__wa { font-size: 13px; align-items: flex-start; padding-top: 12px; }
  .cake__wa .wa-ic { margin-top: 1px; }
  .order__two { grid-template-columns: 1fr; }
  .order__sum { padding: var(--s-5); }
  .chip--card > span { min-width: 0; }
  .footer--band .close__word { font-size: 13vw; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .cake, .cake__pic img, .chip > span, .filter__btn { transition: none; }
  .cake:hover { transform: none; }
  .cake:hover .cake__pic img { transform: none; }
}

/* the visit panel */
.visit { background: var(--p-surface); padding: var(--s-7); display: grid; gap: var(--s-5); align-content: start; border-radius: var(--r-md); }
.visit .rows { margin-top: var(--s-2); }
@media (max-width: 639px) { .visit { padding: var(--s-5); } }
/* the visit photograph stands as tall as the panel beside it */
#lokasi .visit-grid { align-items: stretch; }
#lokasi .pl-photo { position: relative; min-height: 342px; overflow: hidden; border-radius: var(--r-md); }
#lokasi .pl-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 60%; }
@media (max-width: 1023px) { #lokasi .pl-photo { aspect-ratio: 4 / 3; min-height: 0; } }

/* the builder holds one screen on a desktop */
#tempah .section-head { margin-bottom: var(--s-5); gap: var(--s-2); }
#tempah .order__form { gap: var(--s-4); }
#tempah .opt legend { margin-bottom: var(--s-2); }
#tempah .chip--card > span { padding-block: var(--s-2); }
@media (max-width: 1023px) {
  #tempah .order__grid > * { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
    .hero--place .btn-row { flex-direction: column; align-items: stretch; }
  .hero--place .btn-row .btn { width: 100%; justify-content: center; }
  .hero--place .btn-row .link { align-self: flex-start; }
  .visit .rows > li { grid-template-columns: 1fr; }
  .visit .rows .rows__value { grid-column: 1; grid-row: auto; text-align: left; }
  .lang { padding: 1px; }
  .lang__btn { min-width: 44px; height: 42px; }
  .lang__btn[aria-pressed="true"] { display: none; }
}
@media (max-width: 380px) { .nav__logo .mark { display: none; } }

#galeri .section-head { margin-bottom: var(--s-4); gap: var(--s-2); }
#galeri .filter { margin-bottom: var(--s-5); }
.order__send .sm { display: none; }
@media (max-width: 639px) {
  .order__send .lg { display: none; }
  .order__send .sm { display: inline; }
  .cake__meta { flex-direction: column; }
}
@media (max-width: 1023px) { #galeri.g2 > .wrap { display: block; } #galeri .gal .cakes { margin-bottom: var(--s-7); } }
@media (max-width: 1199px) and (min-width: 1024px) { .nav__bar { gap: var(--s-5); } }
/* reviews: the photograph stands as tall as the section allows */
#review .review__pic { position: relative; min-height: 342px; overflow: hidden; border-radius: var(--r-md); align-self: stretch; }
#review .review__pic > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
@media (min-width: 1024px) { #review .wrap.grid { height: 100%; align-items: stretch; } }
@media (max-width: 1023px) { #review .review__pic { aspect-ratio: 4 / 3; min-height: 0; } }

#galeri .gal__more { margin-top: var(--s-7); font-size: var(--t-lead); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: baseline; }
@media (min-width: 1024px) { #galeri .cake__pic { aspect-ratio: 5 / 6; } }
#tempah .section-head p { font-size: var(--t-body); }
#tempah .order__grid > * { min-width: 0; }
.field :is(input, select, textarea) { min-width: 0; width: 100%; }
@media (min-width: 1024px) { #review .review__pic { min-height: 600px; } }
.order__send { white-space: normal; height: auto; min-height: var(--btn-h); text-align: center; }
@media (max-width: 1023px) { #galeri .gal-2 .cakes { margin-bottom: 0; } }
.form-status:empty { display: none; }
.form-status { color: var(--ink); font-weight: 500; }
/* the language switch sits beside the WhatsApp button in the split nav's right column;
   on a phone the wrapper steps aside so the bar keeps the kit's own layout */
.nav__end { display: contents; }
@media (min-width: 1024px) {
  .nav--split .nav__end { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: var(--s-4); }
  .nav--split .nav__end .nav__actions { grid-column: auto; }
}
/* 1024 to 1279: the split nav is tight, so the name and the words close up */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav--split .nav__logo { font-size: 22px; }
  .nav--split .nav__logo .mark { display: none; }
  .nav--split .nav__links .nav__link { padding-inline: 8px; font-size: 14px; }
  .nav--split .nav__end { gap: var(--s-3); }
  .nav--split .nav__actions .btn { padding-inline: var(--s-4); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  html[data-type="place"] { --gut: 48px; }
  .nav--split .nav__bar { column-gap: var(--s-5); }
}
